Elasticsearch frontend with advanced OSINT analytics capabilities including sentiment display, nickname/information tracing, live and scheduled rule creation with webhook endpoints. https://pathogen.is
Go to file
Mark Veidemanis 6662e65c08
Begin work on Drilldown implementation
2022-07-21 13:46:34 +01:00
app Begin work on Drilldown implementation 2022-07-21 13:46:34 +01:00
core Begin work on Drilldown implementation 2022-07-21 13:46:34 +01:00
.gitignore Add JetBrains folder to gitignore 2022-07-21 13:45:07 +01:00
.pre-commit-config.yaml Properly indent all templates 2022-07-21 13:46:05 +01:00
README.md Add more information to the README 2022-07-21 13:46:26 +01:00
manage.py Run formatting 2022-07-21 13:45:13 +01:00
pyproject.toml Add curlylint config 2022-07-21 13:46:12 +01:00
requirements.txt Run formatting 2022-07-21 13:45:13 +01:00

README.md

Neptune

Django app to handle to manage subscriptions to products using Stripe, and implementation of the products themselves.

Setting up the environment

Create the virtual environment, enable it, and install the dependencies.

$ python3 -m venv venv
$ source env/bin/activate
(env) $ pip install -r requirements.txt

Running database migrations

Now we need to run the database migrations in order to get a working database.

(env) $ python manage.py migrate

Creating a superuser

In order to access Django admin, we need a superuser.

(env) $ python manage.py createsuperuser
Username: t2
Email address: t2@google.com
Password: 
Password (again): 
Superuser created successfully.

Running the server

(env) $ python manage.py runserver 8001
Starting development server at http://127.0.0.1:8001/
Quit the server with CONTROL-C.

As you've guessed, you can access it at http://127.0.0.1:8001/

Troubleshooting

Sometimes Django is difficult.

django.db.utils.OperationalError: no such table: core_user

This means you haven't yet run the migrations. See above.

Updating the models

If you make changes to the database models, you will need to create new migrations. Do this like so:

(env) $ python manage.py makemigrations

Afterwards, we can apply them as normal.

(env) $ python manage.py migrate