Skip to content

dhvll/InternAssignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InternAssignment

Setting Multiple Database for different apps.

Technologies

  • Django
  • Python

Getting Started

To get a local copy up and running follow these simple steps:

Prerequisites

  • Python 3.

Installation

  1. Create a local copy of this git repository with git clone command.

    $ git clone https://github.com/dhavall13/InternAssignment.git
  2. Create a Virtual Enviornment with the virtualenv module.

    $ virtualenv .
  3. Once you’ve created a virtual environment, you may activate it.

    $ source Scripts/activate
  4. Now, install the requirements from the requirements.txt file.

    $ pip install -r requirements.txt
  5. Now, apply the migrations with the management command.

    $ python manage.py migrate --database=users_db (for users app)
    $ python manage.py migrate --database=products_db (for products app)
  6. Now, create superuser

    $ python manage.py createsuperuser --database=users_db 
  7. Finally, start the developement server with the management command.

    $ python manage.py runserver

Authors

  • Dhaval Chaudhari - Initial work - dhaval

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors