Skip to content

VerdantVibes/django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

13 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸπŸš€ Python Django Server Setup Guide πŸš€πŸ

Welcome to the Django Server Setup Guide! Follow these steps to smoothly set up and manage your development environment.

🌟 Getting Started with Your Environment

Ensure a clean and organized setup by using a virtual environment for managing your project's dependencies.

🌱 Creating a Virtual Environment

In your project's root directory, initiate the virtual environment with:

python -m venv myproject

This is a one-time command to create the virtual environment.

⚑ Activating the Virtual Environment

Every time you start working on your project, activate the virtual environment using:

source myproject/bin/activate

Ensure you are in the correct directory containing your virtual environment folder before activating it.

❌ Deactivating the Virtual Environment

To exit the virtual environment, simply run:

deactivate

πŸ“¦ Installing Required Packages

Before installing any packages, activate your virtual environment as shown above. Then install the necessary packages listed in requirements.txt by running:

sudo apt-get install libpq-dev
pip install -r requirements.txt

Note: If you encounter installation issues with the psycopg2 package within a virtual environment, install psycopg2 outside the virtual environment first, then proceed with installing the remaining packages inside the virtual environment.

🌐 Running the Backend Server

Start the backend server before launching the frontend server. Here's how:

πŸ› οΈ Apply Migrations

Run the following command to apply database migrations:

python manage.py migrate

βš™οΈ Create Cache Table for Development

Set up a cache table for development with:

python manage.py createcachetable

Enjoy your development journey! πŸš€πŸ‘¨β€πŸ’»πŸ‘©β€πŸ’»

About

This is Diango Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages