Welcome to the soda_web
repository, the Django backend project
managed with Poetry for ASU's Software Developers
Association. This README provides essential
instructions on setting up and running our Django-based web
application.
Before you start, ensure Python is installed on your system. Download it from python.org.
Poetry is our tool for managing dependencies. To install Poetry:
- Visit the Poetry installation guide.
- Follow the instructions for your operating system.
- Check the installation by executing
poetry --version
in your command line.
Clone the "soda_web" repository and navigate to its directory:
git clone https://github.com/asusoda/soda_web.git
cd soda_web
Inside the directory, use Poetry to install dependencies:
poetry install
This command reads pyproject.toml
and installs all the necessary
dependencies for "soda_web".
Poetry creates a virtual environment for the project. Activate it with:
poetry shell
This step ensures all Python operations are executed within the project's environment.
To run the Django server in "soda_web":
- Make sure you're in the root directory of the project.
- Execute these commands:
# Apply database migrations
python manage.py migrate
# Start the Django server
python manage.py runserver
The server will start at http://localhost:8000/
.
-
Creating migrations after model changes:
python manage.py makemigrations
-
Creating a superuser for the Django admin:
python manage.py createsuperuser
Complete the prompts to set up the superuser.
You are now set to use the "soda_web" project with Poetry and Django. For detailed Django documentation, visit Django's official site. For advanced Poetry usage, see Poetry's documentation.
Should you encounter any issues or have queries, please refer to this project's issue tracker.
Happy coding! 🚀🐍🌐