Skip to content

Latest commit

 

History

History
46 lines (38 loc) · 1.25 KB

README.md

File metadata and controls

46 lines (38 loc) · 1.25 KB

DjangoShop

An e-commerce website, implemented using Django framework. You can add products and images to the website using the admin page. Registered and non-registered users can add products to the cart and then order them. The website is implemented using Romanian language.


How to use the program:

1. Create a virtual environment. (Recommended)

After downloading the files on your computer, open the terminal and navigate to the DjangoShop-main directory. Run the following command to create a virtual environment in this directory:

python -m venv venv

Run this command to activate the created virtual environment:

source venv/bin/activate

2. Install the dependencies.

pip install -r requirements.txt

3. Create a database.

Navigate to DjangoShop-main/django_shop Run this command to create a database:

python manage.py migrate

4. Create superuser to access the admin page.

Create superuser using this command:

python manage.py createsuperuser

Enter a name and a password.

5. Run the development server.

python manage.py runserver 8080

Then open your browser and enter the address localhost:8080 You can also access the admin page localhost:8080/admin