This content originally appeared on DEV Community and was authored by paul
This is a submission for the Neon Open Source Starter Kit Challenge : Ultimate Starter Kit
Django Freelancing Django Starterkit (production ready)
Tired of writing Django project from scratch? use this template to speed up your Django development and deliver production ready websites within few hours, instead of weeks or months.
Link to Kit
Github: Your Django Starterkit
Visit the demo site: Django Demo template
For admin use
demo@mail.com
demo123*
Features of Django template:
- Production ready, you can immediately deploy this to cloud such as Vercel, Railway.app, Render.com etc.
- Comes with a landing page that you can modify.
- Uses postgres DB for production
- Responsive design, forget about making things responsive yourself, comes with responsive
base.html
. - Contact us page.
- 404 page
- Has blog with Trix WYSIWYG editor built into the admin panel.
- Technical SEO optimization.
- Dynamic Sitemap.xml
- Robots.txt
- Google analytics
- Custom user model.
- Tailwind css setup for rapid development (note: the tailwind classes are prefixed with
tw-
, to differentiate them)
Wait thats not it.
If you are just starting out and want to provide your clients with a superior landing pages, check out the free and open-source landing pages as well
PaulleDemon / awesome-landing-pages
Free to use landing pages for SaaS developers, freelancers, agencies and businesses
Free Landing page templates
Contains free and open-sourced website templates, including but not limited to SaaS landing page, portfolio, Restaurant page and more. Useful, for freelancers, agencies, SaaS developers, and more.
Download from browsable page: https://awesome-landingpages.vercel.app/
Updated weekly
New templates will be uploaded every Friday. Feel free to star this repository 🌟.
Have a generic template in mind?
-
Create a new template issue, once your template request have enough thumbs up, we'll make one.
-
If you are looking for a custom one, contact here
Table of content
…
Whom is this meant for?
- For freelancers and agencies
- People starting out with Django freelancing development and want to deliver tested code.
- People looking to learn Django.
Getting started
Step 1: ✨ Star the repo: https://github.com/PaulleDemon/Django-website-template
Step 2: Clone the repo
git clone https://github.com/PaulleDemon/Django-website-template
Step 3: Install dependencies
pip install -r requirements.txt
step 4: Add a .env
file inside the project
folder with the following
DEBUG=1
PYTHON_VERSION=3.10
DOMAIN=""
ALLOWED_HOSTS=".up.railway.app"
ALLOWED_CORS=""
SECRET_KEY=""
PORD_SECRET_KEY=""
DJANGO_SUPERUSER_EMAIL="" # optonal use if you want to create supruser using --noinput
DJANGO_SUPERUSER_PASSWORD="" # optonal use if you want to create supruser using --noinput
EMAIL_HOST="smtpout.server.net"
EMAIL_HOST_USER=""
EMAIL_HOST_PASSWORD=""
POSTGRES_DATABASE=""
POSTGRES_USER=""
POSTGRES_PASSWORD=""
POSTGRES_HOST=""
POSTGRES_URL=""
PROJECT_ID="" # firebase project id
BUCKET_NAME=".appspot.com" # firebase storage name
FIREBASE_CRED_PATH="project/firebase-cred.json"
FIREBASE_ENCODED=""
CLOUD_PLATFORM="RAILWAY"
GOOGLE_ANALYTICS="G-"
Step 5: Now in your terminal Create databases and Tables using
python manage.py migrate
Step 6: Now run the website from the terminal using.
python manage.py runserver
Step 7: Now run the website from the terminal using.
python manage.py runserver
Your website should be available at: http://localhost:8000/
Step 8: To run Tailwind CSS open a new terminal and run
python manage.py tailwind start
Note: If you are facing problems starting this program in windows OS, remove logging from project/settings.py
Further reading and deployment
Read more about customizing and deployment on the Github
I am using vercel and neon postgres. You can easily deploy this to vercel and use default neon Postgres DB on your free tire as well.
Related Tutorials
This content originally appeared on DEV Community and was authored by paul
paul | Sciencx (2024-08-26T16:02:43+00:00) Your Ultimate Django Freelancing Staterkit. Retrieved from https://www.scien.cx/2024/08/26/your-ultimate-django-freelancing-staterkit/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.