DEV Community

Bruno Bernard
Bruno Bernard

Posted on

Setting up django should be fast and easy.

I am a freelance developer. Lately, I've been heavily using Django to make my development process faster.

Each time I needed to create a project, it was a pain for me to copy-paste code from previous projects on and on.

Fortunately, to help myself out, I made a little script. I just run with a curl call alongside bash. And Boom! Installed! Everything I needed was there.

Hope this might help you too. You can fork it. Make it your own, and set up your own environment. It is not more repetitive.
Also, It will work with always the latest Django project. The project has no hardcoded Django version attached to it. :) + It has some goodies in it.

So, check it out!

GitHub logo eznix86 / django-setup-template

๐Ÿ Sssssetup your django with one command

Django Setup Template

Like this guy, just copy and paste this command, it generate your project,

Prequesities

  • Python 3+
  • Mac/Linux

What you have inside

  • pytest with django (testing)
  • black (linting)
  • factory boy (fixtures)
  • django (obvisouly :) )
  • flake8
  • isort
  • mypy
  • rich

Goodies

  • It automatically setups 3 environements for you, staging, prod, dev. (Check in core/settings/ folder.)
  • You also have a Procfile for heroku ;)
  • Using rich to have pretty logging... sexy ones

What you need to Ctrl+C and Ctrl+V:

(Press the copy button too if you are a mouse guy)

curl -sSL -H "Cache-Control: no-cache" https://raw.githubusercontent.com/theArtechnology/django-setup-template/main/install.sh | bash -s
Enter fullscreen mode Exit fullscreen mode

Press enter, and boom! Project ready to rock !

Want more ?

Contribute my friend ! *wink

Want it your own?

Fork !!!

Top comments (1)

Collapse
 
abdurrahmaanj profile image
Abdur-Rahmaan Janhangeer

You bashed it out XD