https://docs.djangoproject.com/en/4.2/intro/tutorial01/
https://www.w3schools.com/django/django_intro.php
This is a template to get you started with Python on Replit. It's ready to go so you can just hit run and start coding!
- Setup a new secret environment variable (the lock icon) where the key is
SECRET_KEY
and the value is a randomly generated token of 32 bits of randomnese. To generate such a token type this into the shell and hit Enter:
python
import secrets
secrets.token_urlsafe(32)
- Hit run!
See this 1 minute video for a walkthrough: https://www.loom.com/share/ecc4e738149f4d1db3bcff01758b3e71
To add packages to your repl, you can just import directly in the file you want to use the package in, and it will automatically be installed when you press the run button. Like below:
import math
import pandas as pd
You could also install packages by using the Replit packager interface in the left sidebar.
If you need help you might be able to find an answer on our docs page. Feel free to report bugs and give us feedback here.