Giter Site home page Giter Site logo

djangoadvancedapp's Introduction

djangoAdvancedapp

Advanced django app using docker and postgresql

First clone this repo

git clone <repo_url>

Then do the following

cd djangoadvancedapp

Build the app

docker-compose build

After building the app , migrate the database

docker-compose run web python manage.py migrate

Now run the app

docker-compose up

Go to http://localhost:8001/ and check

if you are not using docker do this,

create a new folder called app and inside the folder create virtual environment

mkdir app
cd app
python -m venv env

now clone this repo inside app folder

git clone <repo_url>

activate the virtual environment

cd env
cd scripts
activate

install the requirements

cd djangoadvancedapp
pip install -r requirements.txt

Do the migrations

python manage.py migrate

run the app

python manage.py runserver

Now go to http://localhost:8000 and check

Note (to run this app using python server)-

  • You have to have postgresql installed
  • go to settings.py and change the database settings similiar to your postgres settings.

djangoadvancedapp's People

Contributors

dependabot[bot] avatar xettrisomeman avatar

Watchers

 avatar

djangoadvancedapp's Issues

TemplateDoesNotExist

Even after adding template folder. It keeps saying template does not exist. The apps run fine using python runserver but using docker, it cannot find the {% extends 'base.html' %}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.