GithubHelp home page GithubHelp logo

justacoderguy / blog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dsc-iem/blog

0.0 1.0 0.0 2.78 MB

Blogs from DSC-IEM

Batchfile 0.30% Python 31.31% HTML 16.78% JavaScript 16.56% CSS 35.06%

blog's Introduction

DSC-IEM Blog

Blogs for tech and beyond from DSC-IEM community. With the help of this project we hope to give the students of this community a platform to share, showcase and help each other in their exciting journey of learning and building amazing things.
Everyone is encouraged to contribute to this project

About the codebase

We are using Python and Django for our blog server

How to start working on the server code

Create a virtualenv

virtualenv blogenv

Activate our python virtual environment

blogenv\Scripts\activate

Install all required packages

pip install -r requirements.txt

After making changes to static files

python manage.py collectstatic

After modifying database models, generate necessary migration code

python manage.py makemigrations dscblog

Apply any database migration

python manage.py migrate --run-syncdb

Run server in dev mode

python manage.py runserver 0.0.0.0:8000

Run server in production mode

(This will only work on linux)

gunicorn -b 0.0.0.0:80 dscblog.wsgi

Env variables for django

For local setup, you can also use settings_dev.py file

  • DJ_SECRET_KEY: Django secret key
  • BASE_URL: Root url of the server. eg: https://example.com
  • DATABASE_URL: eg: postgres://user:password@localhost/dbname

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.