GithubHelp home page GithubHelp logo

app-generator / how-to-integrate-django-with-mongo Goto Github PK

View Code? Open in Web Editor NEW
2.0 3.0 1.0 9 KB

How to use Django with MongoDB - Free Tutorial | AppSeed

Home Page: https://docs.appseed.us/technologies/django/integrate-mongodb/

Python 100.00%
django-mongodb how-to open-source tutorial django-mongoengine django-practice django-tutorial-application django-mongo django-mongo-sample mongo-django

how-to-integrate-django-with-mongo's Introduction

Code sample on how to integrate Django and MongoDB. Open source Django dashboard generated by AppSeed as the user interface of the web application.


Requirements

To use the following code, you need to have the following tools installed on your computer.

  • Python3
  • MongoDB server

Links

Features

  • Simple, intuitive codebase - built for beginners (can be extended with ease)
  • Design: Django Soft Dashboard - Free Version
  • Sections covered by the design:
    • Admin section (reserved for superusers)
    • Authentication: Django.contrib.AUTH, Registration
    • All Pages available in for ordinary users
  • Persistence: MongoDB

How to use the code

Start MongoDB service

For Unix, MacOS

$ sudo service mongod start

For Windows:

Mongod starts automatically when MongoDB is installed as a service. If not check here

Clone the sources

$ git clone https://github.com/app-generator/how-to-integrate-django-with-mongo.git
$ cd how-to-integrate-django-with-mongo

Create a virtual environment

For Unix, MacOS:

$ virtualenv -p python3 venv
$ source venv/bin/activate

For Windows:

$ virtualenv venv
$ .\venv\Scripts\activate.bat

Install dependencies using pip

(venv)$ pip install -r requirements.txt

Start the API server

(venv)$ python manage.py migrate
(venv)$ python manage.py createsuperuser # create the admin
(venv)$ python manage.py runserver

At this point, the app runs at http://127.0.0.1:8000/



Integrate Django with MongoDB - Open-Source sample provided by AppSeed

how-to-integrate-django-with-mongo's People

Contributors

app-generator avatar benfaruna avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rahulmr

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.