A blog application based on Django.
Checkout package.json and requirements.txt for current version of the packages below.
PythonDjangoGunicornWhitenoiseTailwindCSSAutoprefixerPostCSSpnpmornpmoryarn
This is for installing and using in development. If you want to deploy it, see production.
git clone https://github.com/bigyanse/blango.gitcd blangopnpm installornpm installoryarn
If you use pipenv,
pipenv installpipenv shellpnpm watch:style & pnpm dev
If you prefer, python's venv,
python -m venv .envsource .env/bin/activate.fishor choose one that fits your shell environment.python -m pip install -r requirements.txtpnpm watch:style & pnpm dev
In case, if you want to deploy this blog application to production by tweaking this project, here is how you can go about it.
- Make sure you have all the prerequisites.
- After that, you can install all the required packages using
python -m pip install -r requirements.txt. - The
db.sqlite3database is only here for demo purpose. So, you may need to setup your own database. If you want to use sqlite as a database then you can just deletedb.sqlite3named file in the directory and proceed the steps below. Else, configure the database you want and also, follow the steps below. - Run
python manage.py migrate. - Set
DEBUG = Falseincore/settings.py. - Set
ALLOWED_HOSTS = ["*"]incore/settings.pyor your desired value. - Run
pnpm build:styleornpm run build:styleoryarn build:stylefor tailwindcss. - Run
python manage.py collectstatic. - Now you can deploy it using
gunicorn core.wsgi.
Your contribution would be highly appreciated. If you are new to open source, check out some guides.
Though it is highly susceptible to change, you can roughly follow this workflow for now:
- Fork this repository on GitHub.
- Clone your forked repository locally.
- Check Installation and Usage for running it locally.
- Make your changes and push it to your fork. Please follow good commit naming conventions or good branch naming conventions like
feature/some-feature,bugfix/some-bug-fix.