mrouhi13 / djecrety Goto Github PK
View Code? Open in Web Editor NEWDjecrety is a Django secret key generator.
Home Page: https://djecrety.ir
License: GNU General Public License v3.0
Djecrety is a Django secret key generator.
Home Page: https://djecrety.ir
License: GNU General Public License v3.0
Use SVG for Logos
Use SVG file for Github logo and Djecrety logo.
Set Domain
Set "djecrety.ir" DNS records to Github Pages.
Add Github Repo Link
Add Github repository link to the index.html
Update Readme
Update readme for using and contributing the package.
Add Policy Link
Add policy link in the footer with a message like below:
Djecrety is written using pure Javascript, CSS, and HTML and do not have any back-end code and database.
SEO Optimization
Consider the SEO suggestions from the https://gtmetrix.com
Develop Djecrety Django Package
settings.py
file with the new secret keydjecrety
commandCreate Github Repo
Add the project to Github.
Build Package
Setup the python package.
Add Google Analytics
Add Google Analytics script to the site.
I would recommend putting the secret key inside an .env
file that would store all secrets (including admin and database password) and from settings.py
getting the secret key like this. Then we can gitignore the .env
file.
settings.py
import os
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = os.environ.get(
"DJANGO_SECRET_KEY"
)
.env
DATABASE_NAME=**********
DATABASE_USER=**********
DATABASE_PASSWORD=**********
...
DJANGO_SECRET_KEY={SECRET_KEY}
...
I think this method helps preventing mistakes while facilitating collaboration as there are many things we can change inside settings.py
that we would want other developpers to pull.
The current recommendation:
So recommended: Keep it safe. Ignore
settings.py
file in your commits. Change the secret
key on your deploy. If you lost the secret key for any reason or
the server got compromised change it as soon as possible.
Refactor Index Page
Refactor index.html
tags and styles.
Site Optimization
Make the site SEO in friendly way.
Update Logo
Update logo and logo type.
Add Twitter Link
Add a Twitter link next to the email button.
Update Index Page
Add package reference and help to the index page.
Design Index Page
Design index.html page using Semantic UI and jQuery.
Brand Icon Issue
Fix Twitter icon issue.
Clipboard Issue
When clicking on the generate button, clipboard doesn't change.
Set Logo
Add logo and favicon.
Add Dark Mode Switch
Add a switch for changing theme mode (Dark/Light).
Upload to PIP
Upload package to PIP.
Travis CI
Add .travis.yml file and check with Travis service for CI.
Hello!
First of all, I really love to use your website - it is simple but amazing because I need to create keys so often and your work just makes it so much easier.
Just one request:
Please remove it that sometimes #-characters can show up in the key since python will interpret the rest as a comment.
Thank you very much!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.