This project helps Django developers get up and running as quickly as possible. You write just a single line of command and we'll automate the rest.
- Create a project directory.
- Create a new Django Project.
- Create a virtual environment.
- Activate virtual environment.
- Install basic requirements such as Django.
- Create local and remote Github repositories.
- Add remote origin, git add, git commit and git push.
- Runs Django development server.
- Opens Chrome browser loaded with 127.0.0.1:8000
!!! Happy Coding !!!
git clone https://github.com/akjasim/django-project-automation.git
pip install -r requirements.txt
3) Add project root directory into Windows System Variable Path so that you can access the script from anywhere in the PC. Google on 'how to set system path in windows', if you're not comfortable with it.
4) Add environment variables. Google 'how to add environment variable in windows', if you're not comfortable with it.
Note: There are two environment variables you have to set which is shown below and each pair consists of variable name and variable value.
github_user YOUR_GITHUB_USERNAME
github_pass YOUR_GITHUB_PASSWORD
create project_name project_directory private
project_directory (Optional) - The directory in which the project is to be created. (If there are white spaces, surround it with double quotes.)
Create a project named "hello" in directory "D:\Django" as a private repository with the following command in Command Prompt.
create hello "D:\Django" private
create hello "D:\Django"
Currently applicable for only Windows users. For Mac/Linux users, make necessary changes in batch script. We love to keep in touch with contributors. For major changes, please open an issue first to discuss what you would like to change.