{"id":22297745,"url":"https://github.com/paulledemon/django-website-template","last_synced_at":"2025-07-29T01:33:06.368Z","repository":{"id":245602440,"uuid":"818116906","full_name":"PaulleDemon/Django-website-template","owner":"PaulleDemon","description":"Django templates for freelancer's, agencies to supercharge development","archived":false,"fork":false,"pushed_at":"2024-10-19T13:24:57.000Z","size":1273,"stargazers_count":44,"open_issues_count":0,"forks_count":16,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T06:04:15.621Z","etag":null,"topics":["django","django-templates","djangotemplates","templates","website-development","website-template"],"latest_commit_sha":null,"homepage":"https://django-website-template.vercel.app","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PaulleDemon.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"License","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["PaulleDemon"],"buy_me_a_coffee":"artpaul"}},"created_at":"2024-06-21T06:19:44.000Z","updated_at":"2025-04-01T17:25:17.000Z","dependencies_parsed_at":"2024-08-26T15:29:49.842Z","dependency_job_id":"ba54485b-b402-4ce0-bdc9-82916494e27a","html_url":"https://github.com/PaulleDemon/Django-website-template","commit_stats":null,"previous_names":["paulledemon/django-website-template"],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/PaulleDemon/Django-website-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulleDemon%2FDjango-website-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulleDemon%2FDjango-website-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulleDemon%2FDjango-website-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulleDemon%2FDjango-website-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaulleDemon","download_url":"https://codeload.github.com/PaulleDemon/Django-website-template/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaulleDemon%2FDjango-website-template/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267616582,"owners_count":24116155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-templates","djangotemplates","templates","website-development","website-template"],"created_at":"2024-12-03T17:51:16.196Z","updated_at":"2025-07-29T01:33:05.772Z","avatar_url":"https://github.com/PaulleDemon.png","language":"JavaScript","funding_links":["https://github.com/sponsors/PaulleDemon","https://buymeacoffee.com/artpaul"],"categories":[],"sub_categories":[],"readme":"# Django website template (production ready)\nTired of writing Django project from scratch? use this template to speed up your Django development and deliver your project within few hours, instead of weeks or months.\n\n### Why use Django website template?\nUsing a Django template can save you a lot of time, which is a huge benefit. Most clients don't care if you start from scratch or use a template; they just want their problem solved quickly. Whether you use Django or another framework usually doesn't matter to them as long as the job gets done efficiently.\n\nThis template can help you save hours of work, allowing you to deliver a production-ready website in just a few hours.\n\n### What features does Django template include?\n- Production ready, you can immediately deploy this to cloud such as Vercel, Railway.app, Render.com etc.\n- Comes with a landing page that you can modify.\n- Responsive design, forget about making things responsive yourself.\n- Contact us page.\n- 404 page\n- Has blog with Trix WYSIWYG editor built into the admin panel.\n- Technical SEO optimization.\n- Dynamic Sitemap.xml\n- Robots.txt\n- Google analytics\n- Custom user model.\n- Tailwind css setup for rapid development (note: the tailwind classes are prefixed with `tw-`, to differentiate them)\n\n### Do I need to be an expert in Django to use this?\nA basic understanding of HTML, CSS, and JavaScript is all you need to get started. However, if you want to add custom pages or make more advanced modifications, having at least some foundational knowledge will be really helpful.\n\n### Looking for Other boiler plates?\n**SaaS website template:** [Django boilerplate](https://github.com/PaulleDemon/Django-SAAS-Boilerplate)\n\n**Free and open-source landing pages:** [Free landing pages](https://github.com/PaulleDemon/awesome-landing-pages)\n\n\n#### Want advance Django boiler plate?\nIf you are looking for more advanced features, such as analytics integration, career pages, advanced\nblog integration check out the premium [django templates](https://templates.foxcraft.tech/django-website-templates).\n\nIf you need anything custom feel free to contact [Django developer](https://tally.so/r/woO0Kx)\n\n### Demo\nVisit the demo site: [Django Demo website](https://django-website-template.vercel.app/)\n\nFor admin use\n```\ndemo@mail.com\ndemo123*\n```\n### Table of contents\n\n- [Django website template (production ready)](#django-website-template-production-ready)\n  - [Why use Django website template?](#why-use-django-website-template)\n  - [What features does Django template include?](#what-features-does-django-template-include)\n  - [Do I need to be an expert in Django to use this?](#do-i-need-to-be-an-expert-in-django-to-use-this)\n  - [Demo](#demo)\n  \n- [Local development](#local-development)\n  - [Admin superuser](#admin-superuser)\n- [Customizing](#customizing)\n  - [Adding title, description to page](#adding-title-description-to-page)\n- [Deployment:](#deployment)\n    - [Create a firebase credential file](#create-a-firebase-credential-file)\n    - [Deploying credential file to production](#deploying-credential-file-to-production)\n- [Images credits](#images-credits)\n\n\n\n## Local development\n\nfollow the below steps :\n1. Star the repo: https://github.com/PaulleDemon/Django-website-template\n   \n2. Clone the repo\n`git clone https://github.com/PaulleDemon/Django-website-template`\n\n3. Install python 3.8 or above.\nhttps://www.python.org/downloads/\n\n4. Open the template folder and from the terminal change the\ndirectory to the current working directory.\n`cd home/Template`\n\n5. Install dependencies in an environment (creating an\nenviornment is optional, but recommended)\n```\npip install -r requirements.txt\n```\n\n6. Add a `.env` file inside the `project` folder with the following\n```py\nDEBUG=1\nPYTHON_VERSION=3.10\nDOMAIN=\"\"\n\nALLOWED_HOSTS=\".up.railway.app\"\nALLOWED_CORS=\"\"\n\nSECRET_KEY=\"\"\nPORD_SECRET_KEY=\"\"\n\nDJANGO_SUPERUSER_EMAIL=\"\" # optonal use if you want to create supruser using --noinput\nDJANGO_SUPERUSER_PASSWORD=\"\" # optonal use if you want to create supruser using --noinput\n\nEMAIL_HOST=\"smtpout.server.net\"\nEMAIL_HOST_USER=\"\"\nEMAIL_HOST_PASSWORD=\"\"\n\nPOSTGRES_DATABASE=\"\"\nPOSTGRES_USER=\"\"\nPOSTGRES_PASSWORD=\"\"\nPOSTGRES_HOST=\"\"\n\nPOSTGRES_URL=\"\"\n\nPROJECT_ID=\"\" # firebase project id\nBUCKET_NAME=\".appspot.com\" # firebase storage name\nFIREBASE_CRED_PATH=\"project/firebase-cred.json\"\n\nFIREBASE_ENCODED=\"\"\nCLOUD_PLATFORM=\"RAILWAY\"\n\nGOOGLE_ANALYTICS=\"G-\"\n```\n\n7. Now in your terminal Create databases and Tables using\n```\npython manage.py migrate\n```\nYour database is created and ready to use.\n\n8. Now run the website from the terminal using.\n```py\npython manage.py runserver\n```\nYour website should be available at: http://localhost:8000/\n\n9. To run Tailwind CSS open a new terminal and run\n```py\npython manage.py tailwind start\n```\n\n**Note:** If you are facing problems starting this program in windows OS, remove logging from project/settings.py\n\n### Admin superuser\nTo create a admin superuser use the following in terminal\n```py\npython manage.py createsuperuser\n```\n\n## Customizing\n\nAll html, css, js and assets lies inside the templates.\n- To modify the landing page, update `home.html`.\n- To add link to header and footer or modify head tags, check `base.html`.\n- extend `base.html` to have the same footer and header.\n\n### Adding title, description to page\nTo add title to a page use the following tags\n```py\n{% block title %}lorem impsum {% endblock title %}\n{% block description %}lorem impsum{% endblock description %} #meta description\n\n{% block socialTitle %}{{blog.title}} | {% endblock socialTitle %} # open graph title, for socials\n{% block socialDescription %}{{blog.meta_description}}{% endblock socialDescription %} # open graph description, for socials\n{% block pageType %}article{% endblock pageType %}\n{% block pageImage %}{% endblock pageImage %} # social image\n```\n\nTo add additional head tags\n\n```py\n{% block head_tags %}lorem impsum {% endblock head_tags %}\n```\nTo add scripts at the end of the elements\n```\n{% block scripts %}\n    \u003cscript src=\"{% static \"\" %}\" /\u003e\n{% endblock scripts %}\n```\n\n## Deployment:\n\nDeploy to vercel\n\n[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FPaulleDemon%2FDjango-website-template\u0026demo-title=Django%20website%20template\u0026demo-description=A%20starters%20template%20for%20django%20developers%2C%20freelancers%20and%20agencies\u0026demo-url=https%3A%2F%2Fdjango-website-template.vercel.app%2F)\n\nor\n\nYou can make use of Railway to deploy your own instance. \n\n\u003ca href=\"https://railway.app?referralCode=BfMDHP\"\u003e\n  \u003cimg src=\"railway.png\" alt=\"railway icon\" height=\"50px\"/\u003e\n\u003c/a\u003e\n\nLink to deploy to [Railway.app](https://railway.app?referralCode=BfMDHP)\n\nonce you complete make sure to \n```\npython manage.py collectstatic\n```\nand set\n```\nDEBUG=0\n```\n**Generate secret key**\nTo generate secret key use `from django.core.management.utils import get_random_secret_key` then `get_random_secret_key()` in your python shell\n\n**Note:** don't forget to set the sites to your domain instead of example.com in the admin panel\n\n### Create a firebase credential file\n\n\u003e**Note:** We'll be using firebase for persistent storage, to upload user files. Firebase is pre-configured as there are other firebase services developers may want to use. \u003cbr\u003e\u003cbr\u003e You can also use any of the storage supported by [django-storages](https://github.com/jschneier/django-storages), if you don't want to use firebase.\n\nTo use Firebase\n\n1. We use Google storage for storing files. Go to firebase -\u003e storage -\u003e create (make it public)\n\n2. Now Go to firebase -\u003e project settings -\u003e service account -\u003e Generate new private key.\n\nRename the private as `firebase-cred.json`\n\nUse this private file as your credential file.\n\n#### Deploying credential file to production\nSometimes your cloud provider may not provide you with storage for secret files. \nSo convert the credential file to base64 using\n```\nbase64 firebase-cred.json \u003e encoded.txt\n```\nNow copy the contents of encoded.txt and paste it in `FIREBASE_ENCODED=\"wedde\"` variable\n\n### Tutorials\n  #### Looking to learn about adding payment to Django?\n  Check out this blog about [adding payment to django](https://dev.to/paul_freeman/adding-payment-to-django-app-4cc9). This should give you an overview about adding payments to Django.\n\n  #### Adding ESP\n  Check out this blog on adding ESP to help you supercharge [transactional emails](https://dev.to/paul_freeman/adding-esp-to-supercharge-your-django-email-4jkp)\n\n  #### Deploying to Vercel\n  Check out this blog for vercel deployment help [Django vercel deployment](https://dev.to/paul_freeman/deploying-django-website-to-vercel-19ed)\n\n## Images credits\nImages are taken from free to use sites such as \n1. unsplash - https://unsplash.com/\n2. Pexels - https://www.pexels.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulledemon%2Fdjango-website-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaulledemon%2Fdjango-website-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaulledemon%2Fdjango-website-template/lists"}