• Stars
    star
    1,862
  • Rank 23,995 (Top 0.5 %)
  • Language
    Python
  • License
    Other
  • Created about 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Django starter project with 🔋

A batteries-included Django starter project. To learn more try the books Django for Beginners, Django for APIs, and Django for Professionals.

djangox_screencast.mov

🚀 Features


Table of Contents


📖 Installation

DjangoX can be installed via Pip or Docker. To start, clone the repo to your local computer and change into the proper directory.

$ git clone https://github.com/wsvincent/djangox.git
$ cd djangox

Pip

$ python -m venv .venv

# Windows
$ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
$ .venv\Scripts\Activate.ps1

# macOS
$ source .venv/bin/activate

(.venv) $ pip install -r requirements.txt
(.venv) $ python manage.py migrate
(.venv) $ python manage.py createsuperuser
(.venv) $ python manage.py runserver
# Load the site at http://127.0.0.1:8000

Docker

To use Docker with PostgreSQL as the database update the DATABASES section of django_project/settings.py to reflect the following:

# django_project/settings.py
DATABASES = {
    "default": {
        "ENGINE": "django.db.backends.postgresql",
        "NAME": "postgres",
        "USER": "postgres",
        "PASSWORD": "postgres",
        "HOST": "db",  # set in docker-compose.yml
        "PORT": 5432,  # default postgres port
    }
}

The INTERNAL_IPS configuration in django_project/settings.py must be also be updated:

# config/settings.py
# django-debug-toolbar
import socket
hostname, _, ips = socket.gethostbyname_ex(socket.gethostname())
INTERNAL_IPS = [ip[:-1] + "1" for ip in ips]

And then proceed to build the Docker image, run the container, and execute the standard commands within Docker.

$ docker-compose up -d --build
$ docker-compose exec web python manage.py migrate
$ docker-compose exec web python manage.py createsuperuser
# Load the site at http://127.0.0.1:8000

Next Steps

I cover all of these steps in my three books: Django for Beginners, Django for APIs, and Django for Professionals.


🤝 Contributing

Contributions, issues and feature requests are welcome! See CONTRIBUTING.md.

⭐️ Support

Give a ⭐️ if this project helped you!

License

The MIT License

More Repositories

1

awesome-django

A curated list of awesome things related to Django
HTML
8,175
star
2

djangoforbeginners

Source code for Django For Beginners
JavaScript
1,047
star
3

djangoforprofessionals

Source code for Django for Professionals 4.0
JavaScript
614
star
4

drfx

A framework for launching new Django Rest Framework projects quickly.
Python
463
star
5

restapiswithdjango

Source code for Django for APIs
JavaScript
393
star
6

django-auth-tutorial

Source code for Django authentication tutorial.
Python
234
star
7

django-microframework

Single page Django app via Carlton Gibson's DjangoCon talk!
Python
144
star
8

django-rest-framework-react-tutorial

Source code for Django Rest Framework + React tutorial.
Python
68
star
9

rest-framework-tutorial

Official Django REST framework tutorial - A Beginner's Guide
Python
51
star
10

django-search-tutorial

Django Search tutorial source code
Python
36
star
11

djangocon2018-rest-auth

Source code for DjangoConUS 2018 talk
Python
26
star
12

djangoforprofessionals_30

Source code for the 3.0 edition of Django for Professionals.
JavaScript
22
star
13

djangoforbeginners_30

Source code for 3.0 version of Django for Beginners
JavaScript
16
star
14

django-login-with-email

Django log in and signup with email not username
Python
15
star
15

django-contact-form

A Django-powered contact form
Python
15
star
16

djangoforapis_31

Source code for 3.1 version of Django for APIs
Python
13
star
17

django-react-blog

A blog with Django/Django Rest Framework backend and React frontend.
Python
13
star
18

djangoforbeginners_31

Source code for Django for Beginners 3.1
JavaScript
12
star
19

django-slug-tutorial

Source code for Django Slug Tutorial
Python
12
star
20

django-custom-user-model

Source code for tutorial on login/logout/signup with a Custom User Model in Django.
Python
11
star
21

django-rest-framework-tutorial

Blog API with Django Rest Framework.
Python
11
star
22

drf-todo-api

Django REST Framework Todo API Tutorial
Python
11
star
23

djangoboston-drf-react-blog

Example app for Django Boston talk on DRF + React
Python
10
star
24

django-testing-tutorial

Source code for Django Testing Tutorial
Python
10
star
25

djangoforbeginners_32

Source code for Django for Beginners 3.2
Python
10
star
26

djangoforbeginners_40

Source code for Django for Beginners 4.0
JavaScript
9
star
27

djangocon2019-search

Source code for DjangoCon US 2019 talk
Python
8
star
28

djangoforapis_30

Source code for 3.0 version of Django for APIs
Python
8
star
29

drf-auth

Django Rest Framework authentication tutorial.
Python
8
star
30

django-allauth-tutorial

Source code for django-allauth tutorial.
Python
8
star
31

wsvincent

7
star
32

djangoforprofessionals_31

Source code for Django for Professionals 3.1
JavaScript
5
star
33

django-favicon-tutorial

How to add a favicon to any Django website.
Python
5
star
34

drf-react-blog

Blog app with DRF backend and React frontend
Python
4
star
35

drf-polls

An API of the official Django polls tutorial with Django Rest Framework.
Python
4
star
36

computer-science-in-python

Classic computer science topics written in Python.
3
star
37

react-tictactoe

JavaScript
2
star
38

drf-blog-api

Blog API with Django Rest Framework
Python
2
star
39

testing

2
star
40

react-beatles-hunt

A Product Hunt clone in React featuring the Beatles.
JavaScript
1
star
41

django-about-page-three-ways

Tutorial on creating a Django About page (or any static page) three different ways
Python
1
star
42

onlinejournal

Django online journal application
1
star
43

react-examples

Various React code examples.
JavaScript
1
star
44

sqljs.org

An online SQLite interpreter
JavaScript
1
star
45

blah

1
star