DEV Community

Cover image for The Framework For Perfectionists With Deadlines

The Framework For Perfectionists With Deadlines

Velda Kiara on April 24, 2020

There are so many programming languages, but one that has caught my eye for a pretty long time has always been Python. The first time I heard about...
Collapse
 
albindevs profile image
Albin Daniel Garcia

Excellent post, very good job 👏. I have a question. I've been learning and building a little bit with react in the front and the api powered by Django. My question is are templates (multi page old style) still used in modern web development?

Collapse
 
veldakiara profile image
Velda Kiara

Thank you.
I have used templates but not the default one from Django, an external one. And yes the templates are still being used.
I have a question for you, I have not used react with Django so far, How is the building process working out for you?

Collapse
 
albindevs profile image
Albin Daniel Garcia

Well I'm still looking for that first job, no real world production experience yet. But this is what I did in my project.

You could have the front and the back in completely different repositories, but I wanted to have them in the same one to make version control easy and consistent through the entire project.

I run django-admin startproject project_name

And then inside the root folder I run npx create-react-app fronted

They are 2 totally decoupled independent projects in the same repository and they only talk through RestFul API requests

Thread Thread
 
veldakiara profile image
Velda Kiara

Nice, it sounds pretty neat too. I am going to give react a try.

Thread Thread
 
albindevs profile image
Albin Daniel Garcia

Go for it! Btw which tamplates do you use with Django?

Thread Thread
 
veldakiara profile image
Velda Kiara

I Google most of the time other times my friends where some of theirs

Thread Thread
 
veldakiara profile image
Velda Kiara

Oh and I use the one's that are a complete package with bootstrap, Js etc

Collapse
 
sobolevn profile image
Nikita Sobolev

Awesome article!

However, I recommend to use cookiecutter instead of django-admin startproject. Why? Because you can reuse existing work of other developers!

Including very complex and high-quality setups, like wemake-django-template. It allows to jump start your new project filled with best practices, tools, and documentation with just two commands.

Some features:

  • Always up-to-date with the help of @dependabot
  • Supports latest python3.7+
  • poetry for managing dependencies
  • mypy and django-stubs for static typing
  • pytest and hypothesis for unit tests
  • flake8 and wemake-python-styleguide for linting
  • docker for development, testing, and production
  • sphinx for documentation
  • Gitlab CI with full build, test, and deploy pipeline configured by default
  • Caddy with https and http/2 turned on by default

GitHub logo wemake-services / wemake-django-template

Bleeding edge django template focused on code quality and security.

wemake-django-template

wemake.services Awesome Build status Documentation Status Dependencies Status wemake-python-styleguide

Bleeding edge django2.2 template focused on code quality and security.


Purpose

This project is used to scaffold a django project structure Just like django-admin.py startproject but better.

Features

Installation

Firstly, you will need to install dependencies:

pip install cookiecutter jinja2-git

Then, create a project itself:

cookiecutter gh:wemake-services/wemake-django-template

Who are using this template?

If you use our template, please add yourself or your company in the list.

We offer free email support for anyone who is using this If you have any problems or questions,…

Collapse
 
victoromondi1997 profile image
VICTOR OMONDI
print("I love this Velda")
Collapse
 
veldakiara profile image
Velda Kiara

print(" Thanks Chief ")

Collapse
 
victoromondi1997 profile image
VICTOR OMONDI

I need to teach you markdown.

message = """ You need to know how
        to style codes in markdown.
        Like mine."""
Thread Thread
 
delightfulcodes profile image
Christian Ndu

how?

Thread Thread
 
jvarness profile image
Jake Varness • Edited
System.out.println("After the \`\`\`, put the language");

Like java or ruby.

puts "It's lit yo"
Thread Thread
 
veldakiara profile image
Velda Kiara • Edited
print( "I did it.")
Collapse
 
tabithakavyu profile image
Thabitha Kavyu

Django Girl!!!

Collapse
 
veldakiara profile image
Velda Kiara

Yasssss

Collapse
 
geezerp profile image
geezerP

This is great 👏👏👏👏👏

Collapse
 
veldakiara profile image
Velda Kiara

Thank you.

Collapse
 
rkthoya profile image
Kitsao Thoya

✨✨...like how thorough this is, Velda. Bonus points for that Jamie Foxx Django header. Good job.

Collapse
 
veldakiara profile image
Velda Kiara

Thank you 😁

Collapse
 
jeanluckabulu profile image
Jean Luc kabulu 🇨🇩💙🐦
print('awesome Velda Kiara')

Collapse
 
veldakiara profile image
Velda Kiara
print("Thanks Jean Luc")
Collapse
 
sm0ke profile image
Sm0ke

Nice ...

Collapse
 
veldakiara profile image
Velda Kiara

Thank you

Collapse
 
ezekiasbokove profile image
Λ\: Ezekias Bokove

Its a good job 👏🏽👌🏽. Awesome👍🏽

Collapse
 
veldakiara profile image
Velda Kiara

Thank you

Collapse
 
delightfulcodes profile image
Christian Ndu

Wow.. this is really nice.
I just started learning Django, any tips on what to read aside the docs?, it's kind of blurry right now but I'm ready to learn it.

Collapse
 
veldakiara profile image
Velda Kiara

I prefer using the official docs, but if you check online you will get some YouTube videos

Collapse
 
erickarugu profile image
Eric Karugu

This is really insightful. I will consider Django in my next project...

Collapse
 
veldakiara profile image
Velda Kiara

Thank you.
Please do.

Collapse
 
bratipah profile image
Bratipah

Excellent explanation. Gives me the motivation to keep learnng django just started out learning it a week a go