Skip to content

Start your Django project in seconds. Inspired by create-react-app

License

Notifications You must be signed in to change notification settings

arsenlosenko/create-django-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

create-django-app

Even though I rarely create new django apps from scratch, I still don't like initial procedure of creating it, too much steps that can be automated. That's the purpose of this tool.

What this script does:

  • Creates Django project
  • Creates corresponding apps
  • Creates initial virtualenv (venv)
  • Installs provided dependencies
  • Creates initial requirements.txt
  • Initializes git repository
  • Runs initial migration (using sqlitedb)
  • Creates superuser
  • Shows created application in browser

Download and run the script:

Python version:

Download it from PyPi:

pip3 install create-django-app --user

Usage:

# show help
create-django-app --help

# create django project
create-django-app -p test_project -a 'test_app1 test_app2' -d requests

# create project without admin user with --noadmin flag
create-django-app -p test_project -a 'test_app1 test_app2' -d requests --noadmin

# don't run server in the end with --nodemo flag
create-django-app -p test_project -a 'test_app1 test_app2' -d requests --nodemo

Bash version:

DEPRECATED: this script does not recieve same updates as the python package, buy still gets the job done. You can download it via wget/curl/whatever you prefer:

curl -O https://raw.githubusercontent.com/arsenlosenko/create-django-app/master/create-django-app.sh

After that give it executable permission:

chmod +x create-django-app.sh

And run it:

./create-django-app.sh -d foo_project -a 'foo_app bar_app' -d 'requests'

Show help:

./create-django-app.sh

About

Start your Django project in seconds. Inspired by create-react-app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published