call my cell for text messages
if any link not working, click here for details
rag overview
books
two_scoop3 | django_microservice |
django-pratical | djangoapi |
two_scoop1 |
you will like these links
- udemy course, and other resources in this site.
it begins with;
python -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
chapter 5 settings and requirements files
settings
- details
settings/
├── __init__.py
├── base.py
├── local.py
├── staging.py
├── test.py
├── production.py
python manage.py shell --settings=config.settings.local
chapter 4 Django app design
uncommon app names
click here to expand
``` scoops/ ├── api/ ├── behaviors.py ├── constants.py ├── context_processors.py ├── decorators.py ├── db/ ├── exceptions.py ├── fields.py ├── factories.py ├── helpers.py ├── managers.py ├── middleware.py ├── schema.py ├── signals.py ├── utils.py ├── viewmixins.py ```django service layer
- https://www.b-list.org/weblog/2020/mar/16/no-service/
- https://www.b-list.org/weblog/2020/mar/23/still-no-service/
- https://www.dabapps.com/blog/django-models-and-encapsulation/
chapter 3 django project layout
project templates
https://github.com/pydanny/cookiecutter-django Featured in this chapter.
https://github.com/grantmcconnaughey/cookiecutter-django-vue-graphql-aws Also featured in this chapter.
https://djangopackages.org/grids/g/cookiecu
default directory map
click here to expand
```text mysite/ ├── manage.py ├── my_app │ ├── __init__.py │ ├── admin.py │ ├── apps.py │ ├── migrations │ │ │ ├── models.py │ ├── tests.py │ └── views.py └── __init__.py └── mysite ├── __init__.py ├── asgi.py ├── settings.py ├── urls.py └── wsgi.py ```Big map
<repository_root>/
├── <configuration_root>/
├── <django_project_root>/
README.md, docs/ directory, manage.py, .gitignore, requirements.txt files, and other high-level files that are required for deployment and running the project.
The settings module and base URLConf (urls.py) are placed. This must be a valid Python package containing an __init__.py module.
+ example of this
icecreamratings_project
├── config/
│ ├── settings/
│ ├── __init__.py
│ ├── asgi.py
│ ├── urls.py
│ └── wsgi.py
├── docs/
├── icecreamratings/
│ ├── media/
│ ├── products/
# Development only!
│ ├── profiles/
│ ├── ratings/
│ ├── static/
│ └── templates/
├── .gitignore
├── Makefile
├── README.md
├── manage.py
└── requirements.txt
cookiecutter map
click here to expand
``` . ├── bin │ └── post_compile ├── compose │ ├── local │ │ ├── django │ │ │ ├── Dockerfile │ │ │ └── start │ │ └── docs │ │ ├── Dockerfile │ │ └── start │ └── production │ ├── django │ │ ├── Dockerfile │ │ ├── entrypoint │ │ └── start │ ├── postgres │ │ ├── Dockerfile │ │ └── maintenance │ │ ├── backup │ │ ├── backups │ │ ├── restore │ │ └── _sourced │ │ ├── constants.sh │ │ ├── countdown.sh │ │ ├── messages.sh │ │ └── yes_no.sh │ └── traefik │ ├── Dockerfile │ └── traefik.yml ├── config │ ├── __init__.py │ ├── settings │ │ ├── base.py │ │ ├── __init__.py │ │ ├── local.py │ │ ├── production.py │ │ └── test.py │ ├── urls.py │ └── wsgi.py ├── CONTRIBUTORS.txt ├── cookiecutter │ ├── conftest.py │ ├── contrib │ │ ├── __init__.py │ │ └── sites │ │ ├── __init__.py │ │ └── migrations │ │ ├── 0001_initial.py │ │ ├── 0002_alter_domain_unique.py │ │ ├── 0003_set_site_domain_and_name.py │ │ ├── 0004_alter_options_ordering_domain.py │ │ └── __init__.py │ ├── __init__.py │ ├── static │ │ ├── css │ │ │ └── project.css │ │ ├── fonts │ │ ├── images │ │ │ └── favicons │ │ │ └── favicon.ico │ │ ├── js │ │ │ └── project.js │ │ └── sass │ │ ├── custom_bootstrap_vars.scss │ │ └── project.scss │ ├── templates │ │ ├── 403.html │ │ ├── 404.html │ │ ├── 500.html │ │ ├── account │ │ │ ├── account_inactive.html │ │ │ ├── base.html │ │ │ ├── email_confirm.html │ │ │ ├── email.html │ │ │ ├── login.html │ │ │ ├── logout.html │ │ │ ├── password_change.html │ │ │ ├── password_reset_done.html │ │ │ ├── password_reset_from_key_done.html │ │ │ ├── password_reset_from_key.html │ │ │ ├── password_reset.html │ │ │ ├── password_set.html │ │ │ ├── signup_closed.html │ │ │ ├── signup.html │ │ │ ├── verification_sent.html │ │ │ └── verified_email_required.html │ │ ├── base.html │ │ ├── pages │ │ │ ├── about.html │ │ │ └── home.html │ │ └── users │ │ ├── user_detail.html │ │ └── user_form.html │ ├── users │ │ ├── adapters.py │ │ ├── admin.py │ │ ├── apps.py │ │ ├── forms.py │ │ ├── __init__.py │ │ ├── migrations │ │ │ ├── 0001_initial.py │ │ │ └── __init__.py │ │ ├── models.py │ │ ├── tests │ │ │ ├── factories.py │ │ │ ├── __init__.py │ │ │ ├── test_admin.py │ │ │ ├── test_forms.py │ │ │ ├── test_models.py │ │ │ ├── test_urls.py │ │ │ └── test_views.py │ │ ├── urls.py │ │ └── views.py │ └── utils │ ├── context_processors.py │ └── __init__.py ├── docs │ ├── conf.py │ ├── howto.rst │ ├── index.rst │ ├── __init__.py │ ├── make.bat │ ├── Makefile │ ├── pycharm │ │ ├── configuration.rst │ │ └── images │ │ ├── 1.png │ │ ├── 2.png │ │ ├── 3.png │ │ ├── 4.png │ │ ├── 7.png │ │ ├── 8.png │ │ ├── f1.png │ │ ├── f2.png │ │ ├── f3.png │ │ ├── f4.png │ │ ├── issue1.png │ │ └── issue2.png │ └── users.rst ├── LICENSE ├── locale │ └── README.rst ├── local.yml ├── manage.py ├── merge_production_dotenvs_in_dotenv.py ├── Procfile ├── production.yml ├── pytest.ini ├── README.rst ├── requirements │ ├── base.txt │ ├── local.txt │ └── production.txt ├── requirements.txt ├── runtime.txt ├── setup.cfg └── tree.md 37 directories, 120 files ```Chapter 2
virtualenv and pythonpath
You can also set your virtualenv’s PYTHONPATH to include the current directory with
the latest version of pip. Running “ pip install -e . ” from your project’s root
directory will do the trick, installing the current directory as a package that can be edited in place.
django-admin and manage.py¶
link django-admin is Django’s command-line utility for administrative tasks. This document outlines all it can do.
In addition, manage.py is automatically created in each Django project. It does the same thing as django-admin but also sets the DJANGO_SETTINGS_MODULE environment variable so that it points to your project’s settings.py file.
The django-admin script should be on your system path if you installed Django via pip. If it’s not in your path, ensure you have your virtual environment activated.
Generally, when working on a single Django project, it’s easier to use manage.py than django-admin. If you need to switch between multiple Django settings files, use django-admin with DJANGO_SETTINGS_MODULE or the –settings command line option.
The command-line examples throughout this document use django-admin to be consistent, but any example can use manage.py or python -m django just as well.
$ django-admin <command> [options]
$ manage.py <command> [options]
$ python -m django <command> [options]
django and docker
References for developing with Docker:
- https://cookiecutter-django.readthedocs.io/en/latest/developing-locally-docker.html
- http://bit.ly/1dWnzVW Real Python article on Django and Docker Compose
- https://dockerbook.com
articles
.. _Using cookiecutter-django with Google Cloud Storage
: https://ahhda.github.io/cloud/gce/django/2019/03/12/using-django-cookiecutter-cloud-storage.html
.. _cookiecutter-django with Nginx, Route 53 and ELB
: https://msaizar.com/blog/cookiecutter-django-nginx-route-53-and-elb/
.. _cookiecutter-django and Amazon RDS
: https://msaizar.com/blog/cookiecutter-django-and-amazon-rds/
.. _Exploring with Cookiecutter
: http://www.snowboardingcoder.com/django/2016/12/03/exploring-with-cookiecutter/
.. _Using Cookiecutter to Jumpstart a Django Project on Windows with PyCharm
: https://joshuahunter.com/posts/using-cookiecutter-to-jumpstart-a-django-project-on-windows-with-pycharm/
.. _Development and Deployment of Cookiecutter-Django via Docker
: https://realpython.com/blog/python/development-and-deployment-of-cookiecutter-django-via-docker/
.. _Development and Deployment of Cookiecutter-Django on Fedora
: https://realpython.com/blog/python/development-and-deployment-of-cookiecutter-django-on-fedora/
.. _How to create a Django Application using Cookiecutter and Django 1.8
: https://www.swapps.io/blog/how-to-create-a-django-application-using-cookiecutter-and-django-1-8/
.. _Introduction to Cookiecutter-Django
: http://krzysztofzuraw.com/blog/2016/django-cookiecutter.html
.. _Django and GitLab - Running Continuous Integration and tests with your FREE account
: http://dezoito.github.io/2016/05/11/django-gitlab-continuous-integration-phantomjs.html
links
link not working?, click below
- /2nujh0e
- /3f2pjuk
- /3ql9vki
- /35fskkd
- /3pb3wov
- /2yfqhbz
- /2lojuac
- /2kieriu
- /39vtww7
- /2ke7reo
- /django-db-models-foreignkey
- /3idkv3n
- /django-3-choice-classes
- /3ctu5tq
- /pg13-ubuntu-installer
- /3cx0ort
- /2eqtagk
- /3huub2k
- /3mimvup
- /35vflm0
- /br-products
- /2rqx59a
- /dcc-live
- /3k2c6kh
- /env_sample_windows
- /3m3mwhy
- /env-sample-mac-or-linux
- /2eb1bea
- /tools2scoops
- /2ebp3hh
- /3jq5lud
- /2q81b7l
- /34ehdk1
- /2cnupmh
- /authorized-vendors
- /30pfilx
- /2pls3w2
- /3hdoxzn
- /tsd3x-live-class
- /2vsi3my
- /2bcqux0
- /multiple-user-types
- /2bkxqkd
- /2zlhuqh
- /31nmwfw
- /2bdage4
- /3feeso3
- /3hmdgob
- /2x7avrz
- /3dyaxfq
- /2xdoknp
- /2znngjc
- /3galth9
- /2aknxyp
- /3bqrm6d
- /tsd3x-on-store
- /3fz3bkn
- /3bouohm
- /3drfeik
- /2wgm0tr
- /3bcmhk0
- /3cdvq1t
- /3f77ahj
- /2yng5rs
- /2yewrxj
- /3ev1duf
- /35c3ney
- /2vj1y5e
- /3f0ezpp
- /2yriqog
- /3boffhx
- /35gs7t2
- /3bpcmer
- /2yripkc
- /2vmftk0
- /2ywrybm
- /2vjlcyl
- /3alltoi
- /2vjvgcn
- /2wcnz1y
- /2kkwumq
- /35gzpfn
- /2yfqhbz
- /2yv4qtn
- /2xea7xq
- /2kieriu
- /3f0evgb
- /2khtpwt
- /2skug66
- /2kuwk0b
- /3bmrhej
- /3f0ev99
- /2shvquh
- /35f7ztm
- /35fskkd
- /2yh01pg
- /3f2ip67
- /3byfhn2
- /2yc94ht
- /3etodys
- /2kkwwnw
- /2wco5xo
- /2zaevfh
- /2sezssc
- /2ye9ofv
- /2yc94ar
- /2vjw4fk
- /3f2iuxt
- /3f0u4yc
- /35d3d6j
- /2yjxmwl
- /2yc93dp
- /2xgjoi8
- /2zd4heb
- /3bm9poj
- /2w5lntl
- /2kewsg2
- /2yc936n
- /2w9f6wv
- /3f2pjuk
- /3bl4gwy
- /2wcnxxu
- /3ez6lra
- /2simepd
- /2kgjkey
- /2y01snh
- /2klzrhi
- /2ygg6xs
- /2si4yts
- /3amyjhq
- /2kfi4bb
- /unusual-javascript
- /2zszq4j
- /products
- /3bdjah4
- /chocolatey-cmd-installer
- /3bzalba
- /choco-tutorial
- /2wortfr
- /transactions-in-mysql
- /3aezlsz
- /model-indexes
- /2xviakl
- /field-choices
- /2xlf5eu
- /historical-models
- /3covkcf
- /model-managers
- /2xqonqw
- /runsql
- /2vfzddm
- /runpython
- /3csjp7u
- /model-inheritance
- /3ahwuxk
- /vscode-ubuntu-installer
- /3ecoixk
- /pg12-ubuntu-installer
- /2wqnao9
- /1zuu7b0
- /wheel-building-fails-cpython-35
- /1lkee9m
- /1itwrwp
- /iedjangogirls-app
- /1jumguf
- /1yrevti
- /djpolls
- /1fploom
- /1vpaqqf
- /pyconstartuprowla
- /1sejwyf
- /xsw6rb
- /submit-to-pypi
- /yyme8e
- /k8y8rf
- /juute9
- /iecehh
- /iqabop
- /j2pjfx
- /i2kwal
- /hxu1k2
- /hode7c
- /hcufoh
- /xeqode
- /xtrvxe
- /zoazce
- /z6ftxc
- /zkho0m
- /azglcl
- /zuxjuv
- /ujtz8g
- /vr1pln
- /ufqekg
- /syamtq
- /tckkxj
- /oe2nyx
- /n1wxh6
- /qlzwii
- /qjc6tu
- /nzougo
- /okirfz
- /qqtvq6
- /qdukhr
- /q4mbed
- /ndobqc
- /q5hpyr
- /pjqjw5
- /nebxbm
- /ouvurh
- /mza1be
- /odgn0p
- /o9gteg
- /omjbxi
- /qcwcw0
- /qs61bm
- /omzla2
- /gpzfai
- /bnfcis
- /a2xgvf
- /dowdyq
- /9hok38
- /br98hj
- /cavzlx
- /dsyxpa
- /cw8hqf
- /9fiu6r
- /boo6mf
- /blkatm
- /aedgx0
- /17zwdy
- /vmjig
- /1fb1oz
- /7tqyi
- /ydepl
- /k8rv7
- /3ghray
- /18t0dy
- /dwppj
- /19tnql
- /17sik0
- /4zud5m
- /3uwsw
- /1t6mty
- /1518in
- /vifmk
- /12hexp
- /jt3pa
- /ppp