No Description

Will Vincent 4fa6a64ebe finish updating from "config" to "django_project" 2 years ago
accounts 4eec535e4a Updated Django and other python modules. 2 years ago
django_project 4fa6a64ebe finish updating from "config" to "django_project" 2 years ago
pages 59a5474068 doublequotes not singlequotes per Black 2 years ago
static 8985fea89b add logo back 4 years ago
templates c53b7603bf Upgrade Bootstrap and jQuery 3 years ago
.gitignore 4fa6a64ebe finish updating from "config" to "django_project" 2 years ago
CONTRIBUTING.md d8e92d9902 update CONTRIBUTING.md 4 years ago
Dockerfile b10a44f69c updated Docker configs 2 years ago
LICENSE 8cf726595a big update adding Docker, Pip, switch users app to accounts, updated Readme 3 years ago
Pipfile d2831baf26 updated Pipfile, Pipfile.lock, requirements.txt 2 years ago
Pipfile.lock d2831baf26 updated Pipfile, Pipfile.lock, requirements.txt 2 years ago
README.md 565add62e1 updated README 2 years ago
docker-compose.yml b10a44f69c updated Docker configs 2 years ago
homepage.png 579578287e new screenshots, update Bootstrap 4 years ago
logo.png 291cbdab8f add logo 5 years ago
manage.py 59a5474068 doublequotes not singlequotes per Black 2 years ago
requirements.txt d2831baf26 updated Pipfile, Pipfile.lock, requirements.txt 2 years ago

README.md

A batteries-included Django starter project. For a production-ready version see the book Django for Professionals.

🚀 Features

Homepage

Table of Contents


📖 Installation

DjangoX can be installed via Pip, Pipenv, or Docker depending upon your setup. 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

$ python3 -m venv .venv
$ source djangox/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

Pipenv

$ pipenv install
$ pipenv shell
(djangox) $ python manage.py migrate
(djangox) $ python manage.py createsuperuser
(djangox) $ python manage.py runserver
# Load the site at http://127.0.0.1:8000

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

For Docker, the INTERNAL_IPS configuration in django_project/settings.py must be updated to the following:

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

Setup

# Run Migrations
(.venv) $ python manage.py migrate

# Create a Superuser
(.venv) $ python manage.py createsuperuser

# Confirm everything is working:
(.venv) $ python manage.py runserver

# Load the site at http://127.0.0.1:8000

🤝 Contributing

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

⭐️ Support

Give a ⭐️ if this project helped you!

License

The MIT License