Loading repository data…
Loading repository data…
RETR0-OS / repository
This is a Django-based E-commerce website template that allows you to rapidly prototype an E-commerce website with advanced security features like Bruteforce protection, SQL Injection protections and more!
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
NOTE: this project has also been hosted on https://r3tr0m1ll3r.pythonanywhere.com/ where all styling with custom error pages and production level settings is visible.
This is the github repository for a site made by R3tr0. This repository has contains a project showing an ecommerce site made by R3tr0 for a company "Banana" that is run by an enterprising minion. This project is based off of Django web framework and thus requires the users to run it in a python environment.
This project has got its debug set to "True" as Django does not support delivering static files such as css, javascript and images in prodution via the lightweight server that comes with manage.py. As a result, there would have been no styles available if debug would have been set to False. Since debug has been set to true, there would be no custom error pages visible and sensetive tracebacks might be visible. Anybody using this project as a template for a production site is advised to set the DEBUG setting in minionfactory app's settings.py to false before production. Also, you are advised to update the SECRET_KEY field to a secure string of preferably more than 50 characters as this is a very sensetive setting and should be a unique string that is undisclosed.
However, this project has also been hosted on https://r3tr0m1ll3r.pythonanywhere.com/ where all styling with custom error pages and production level settings is visible.
Open a git bash terminal.
Install python virtual environment by running: pip install virtualenv.
Create python virtual environment by running: python3 -m venv name_virtual_env
Activate Virtual Env:
source name_virtual_env/bin/activatename_virtual_env\Scripts\activateClone repository with: git clone https://github.com/RETR0-OS/Banana.git
cd Banana
Install requirements for project by running:
pip install -r requirements.txtpython3 manage.py makemigrations
python3 manage.py migrate
python3 manage.py runserver
Then browse to the url: localhost:8000
The site would be visible.
If you wish to set up brute force protection on the login pages of the site, you will require Redis Server to be installled on your system. To set up this feature, follow the following steps:
cd minionfactory.INSTALLED_APPS = [
# 'defender',
#'defender.middleware.FailedLoginMiddleware',
#DEFENDER_LOGIN_FAILURE_LIMIT_IP = 10
#DEFENDER_DISABLE_USERNAME_LOCKOUT = True
#DEFENDER_LOCKOUT_TEMPLATE = "security/defender_lockout.html"
#DEFENDER_ACCESS_ATTEMPT_EXPIRATION = 12
#import defender
# path('admin/defender', include('defender.urls')),
python3 manage.py makemigrations defenderpython3 manage.py migrate defenderredis-serverredis-server.exe (assuming that redis is added to path).