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 a1a5535079
Bump versions in pre-commit config
2023-02-09 07:20:35 +00:00
app Add index rule directive to example settings 2023-02-09 07:20:28 +00:00
core Update pre-commit versions 2023-02-09 07:20:35 +00:00
docker Finish implementing notification rules 2023-01-12 07:20:48 +00:00
.gitignore Ingest notification matches to ES 2023-02-02 20:04:55 +00:00
.pre-commit-config.yaml Bump versions in pre-commit config 2023-02-09 07:20:35 +00:00
Dockerfile Switch to UWSGI and improve Docker definitions 2022-11-29 16:06:44 +00:00
Makefile Switch to UWSGI and improve Docker definitions 2022-11-29 16:06:44 +00:00
README.md Fix typo in documentation 2022-07-21 13:47:52 +01:00
docker-compose.yml Add mode to stored rules output 2023-02-08 18:26:40 +00:00
manage.py Run formatting 2022-07-21 13:45:13 +01:00
pyproject.toml Reformat and add blacklisted directories to DjHTML 2022-09-05 07:20:30 +01:00
requirements.txt Implement running scheduled rules and check aggregations 2023-01-15 17:59:12 +00:00
stack.env Begin implementing smarter WM system for multi-type objects 2022-11-29 07:20:39 +00: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 env
$ source env/bin/activate
(env) $ pip install -r requirements.txt

Local settings

You'll need to copy the app/local_settings.example.py file to app/local_settings.py. The project won't start otherwise.

$ cp app/local_settings.example.py app/local_settings.py

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