DEV Community

Cover image for Ultimate Django Freelancing Staterkit: Finish your Django apps in hours not days
Paul
Paul

Posted on • Updated on

Ultimate Django Freelancing Staterkit: Finish your Django apps in hours not days

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.

Most clients want a working and secure website, so why write from scratch when you can build on a tested

Link to Kit

Github: Your Django Starterkit

Visit the demo site: Django Demo template

For admin use

demo@mail.com
demo123*
Enter fullscreen mode Exit fullscreen mode

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

GitHub logo 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.

Looking for a custom landing page?

  • If you are looking for a custom one, contact here

Consider supporting open-source.

when you support my open-source, I get funds to keep writing more free and open-source projects.

ko-fi

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
Enter fullscreen mode Exit fullscreen mode

Step 3: Install dependencies

pip install -r requirements.txt
Enter fullscreen mode Exit fullscreen mode

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-"
Enter fullscreen mode Exit fullscreen mode

Step 5: Now in your terminal Create databases and Tables using

python manage.py migrate
Enter fullscreen mode Exit fullscreen mode

Step 6: Now run the website from the terminal using.

python manage.py runserver
Enter fullscreen mode Exit fullscreen mode

Step 7: Now run the website from the terminal using.

python manage.py runserver
Enter fullscreen mode Exit fullscreen mode

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
Enter fullscreen mode Exit fullscreen mode

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

Top comments (0)