DEV Community

Bruno Bernard
Bruno Bernard

Posted on

2 1

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 !!!

πŸ‘‹ While you are here

Reinvent your career. Join DEV.

It takes one minute and is worth it for your career.

Get started

Top comments (1)

Collapse
 
abdurrahmaanj profile image
Abdur-Rahmaan Janhangeer β€’

You bashed it out XD

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay