Skip to content

yvenkets/django_apache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

django_apache

Download apache (httpd-2.4.57-win64-VS17)

extract c:\apache24

cd c:\apache24\bin\

Command to start Apache - httpd.exe -k install

Command to start Apache - httpd.exe -k start

install vs build tools

https://visualstudio.microsoft.com/it/visual-cpp-build-tools/

image

run the below command for create environment variable

set "MOD_WSGI_APACHE_ROOTDIR=C:\Apache24" to activate the virtual environment

activate venv

to install mod_wsgi

"pip install mod_wsgi"

execute the below command and paste the result in apache config file

mod_wsgi-express module-config

optional edit settings.py ALLOWED_HOSTS = ['www.app-name.com', 'app-name.com'] add your domain name or '*' to allow all domains.

the sample httpd.conf file available in the repositry.

  1. create virtual environment -> python -m venv venv ->activate-> venv\Scripts\activate

  2. install django - > pip install django

  3. create django project -> django-admin startproject daefodil

  4. -> cd daefodil

  5. Create Application inside your project folder -> python manage.py startapp daefodilapp

  6. Create Application inside your project folder -> python manage.py startapp API

  7. pip install -U -r requirement.txt

  8. db import

  9. File backup replace

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published