项目作者: MichalKandybowicz

项目描述 :
Django & DRF project, learning by doing
高级语言: Python
项目地址: git://github.com/MichalKandybowicz/MK-projekt.git
创建时间: 2021-04-01T16:29:38Z
项目社区:https://github.com/MichalKandybowicz/MK-projekt

开源协议:Other

下载


🚀 Features

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.

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

Pip

  1. $ python3 -m venv djangox
  2. $ source djangox/bin/activate
  3. (djangox) $ pip install -r requirements.txt
  4. (djangox) $ python manage.py migrate
  5. (djangox) $ python manage.py createsuperuser
  6. (djangox) $ python manage.py runserver
  7. # Load the site at http://127.0.0.1:8000

Pipenv

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

Docker

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

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

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

Setup

  1. # Run Migrations
  2. (djangox) $ python manage.py migrate
  3. # Create a Superuser
  4. (djangox) $ python manage.py createsuperuser
  5. # Confirm everything is working:
  6. (djangox) $ python manage.py runserver
  7. # 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