Coder Social home page Coder Social logo

abeilles's Introduction

Abeilles Aide et Entraide

Django web app for Abeilles Aide et Entraide association.


1. Features

...


2. Tech

2.1 Requirements

  • Python 3.6

2.2 Stack

  • Django 3
  • Django-template
  • CSS3
  • JavaScript vanilla
  • sqlite3

3. Install (Linux)

3.1 Locally

  1. Clone project, move into abeilles folder

  2. Create a Python virtual environnement and activate it:

     python -m venv venv
     . venv/bin/activate
    
  3. Install dependencies:

     pip install -r requirements.txt
    
  4. Copy abeilles/settings_specific_sample.py as abeilles/settings_specific.py

  5. Update database:

     python manage.py migrate
    
  6. Run local server:

     python manage.py runserver
    

3.2 Create account

  1. Be sure venv is started and at project root run:

     manage.py createsuperuser
    
  2. Respond...

  3. Now you can login at 0.0.0.0:8000/admin/

3.3 Populate

Data are provided in order to populate database.

Script delete all existing content and users, contains also admin accounts with very low passwords, so...

DO NOT EVER USE POPULATE SCRIPT IN PRODUCTION!

Be also cautious to remove any admin accounts when copying data from instance to another.

  1. Activate venv and:

     manage.py populate
    
  2. script is here

3.4 Troubleshooting

  • if something goes wrong with database and if you don't give a shit about your content, just delete db.sqlite3 file, then:

      manage.py migrate
      manage.py populate
    

abeilles's People

Contributors

gil-x avatar

Watchers

 avatar

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.