Git Product home page Git Product logo

django-eye's Introduction

Django Eye ⚡

Django starter project to build django project quickly with powerful tools.

Installation

Django Eye can be installed via Pip or Pipenv. To start, clone the repository to your local computer.

$ mkdir <your_directory_name>
$ cd <your_directory>
$ git clone https://github.com/alex1the1great/Django-Eye.git .
$ touch .env
$ cp .env.template .env

Development

Pip

$ python -m venv venv_djangoeye
$ source venv_djangoeye/bin/activate
$ pip install -r requirements/development.txt

Pipenv (It will install all packages)

$ pipenv install
$ pipenv shell

Django new secret key

$ python manage.py shell
>>> from django.core.management.utils import get_random_secret_key
>>> get_random_secret_key()
# copy the secret key and assign it to DJANGO_SECRET_KEY

PostgreSQL setup

Create new postgresql database and add credentials into .env file.

Migrate and run Django server

$ python manage.py migrate
$ python manage.py runserver

Empty README.md file

Delete .git directory

$ rm -rf .git

Create a new git repository

$ git init
$ git add .
$ git commit -m "Initial setup"

Configuration

Create a new app

$ cd apps
$ django-admin startapp <your_app_name>

Register a newly created app

INSTALLED_APPS = [
    'apps.<your_app_name>.apps.<your_app_name>Config',
]
  • Go to apps/<your_app>/apps.py
  • Change the app name to:

    name = 'apps.<your_app_name>'

$ cd ..
$ python manage.py runserver

Include Django app url in root.urls file

urlpatterns = [
    path('', include('apps.app_name.urls'))
]

Production ❗

  • Add your own domain name in ALLOWED HOSTS list in .env file.
  • Change settings file to 'root.settings.production'

🤝 Contributing

Contributions, issues and feature requests are welcome!

⭐️ Support

Give a ⭐️ if this project helped you!

django-eye's People

Contributors

asimnp avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

django-eye's Issues

Use database url

using env.dj_db_url('DATABASE_URL') for databases list instead of using all value(engine, user, name, port, host) individually.

Production settings by default

In the manage.py file, select the production.py settings file by default. So, by mistake, we will not use the development.py settings file while hosting it.

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.