spianodev / djangotutorial Goto Github PK
View Code? Open in Web Editor NEWA tutorial from inception through deployment of a fully developed back end using django and python.
A tutorial from inception through deployment of a fully developed back end using django and python.
brew install python pipenv
pipenv install django
and pipenv install psycopg2-binary
to create django application with PostgreSQLpipenv run django-admin startproject <project name> .
to initialize the projectpipenv shell
django-admin startapp <application name>
psql -d postgres
settings.py
to reflect the current databasepython3 manage.py runserver
to check everything has been installed correctly!models.py
with Primary Key and Foreign Key Relationshipspython3 manage.py makemigrations
to connect the Models to the databasepython3 manage.py migrate
to copy the data overpython3 manage.py createsuperuser
admin.py
views.py
urls.py
to the Application directoryforms.py
to the Application directory and create ModelFormstemplates
to the Application directoryurls.py
in the Project directorypipenv install django-cors-headers gunicorn whitenoise dj-database-url django-heroku python-decouple
requirements.txt
from virtual environment by running pip freeze > requirements.txt
Procfile
in the Root directory and add web: gunicorn <project name>.wsgi
to itsettings.py
heroku create honeydo-app
to create the Heroku copy of your applicationheroku addons:create heroku-postgresql:hobby-dev
to connect the databasegit push heroku master
heroku run python manage.py migrate
heroku open
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.