Django, Apache2, Sublime Text 3 build system and developing process.

At first be sure that you are using this path to run pure apache: http://trianglesis.org.ua/django-python-3-4-wamp-apache-2-4-23-pycharm This topic for those who wants to develop ON THE FLY with python and django and do not want to manually restart dev server each time when code changes AND you don’t like built in python web-server and want to run your dev site as it should run on apache. Sublime Text 3 I use it for fast code changing and writting because PyCharm can’t work fine with multiline carrets, for example. Also PyCharm is too heavy when you want just copy&paste some features and see how it work on web. So my PyCharm will be used for debug purposes. I hope you know what isShort Read more…

Django + Python 3.4 + WAMP Apache 2.4.23 + Pycharm

Finally worked instance for hosting DEV site code on python and ability to resolve is as “on live” web server just on my laptop. A lot of different configurations changed but this is one working for me, and maybe can help you also. Better use EVERYTHING 32 bit for Window, you will suffer if you try to find some needed wheels for python 64bit on Windows 7 64bit.   WAMP Apache 2.4.23 Download: wampserver3.0.6_x86_apache2.4.23_mysql5.7.14_php5.6.25-7.0.10 Here

Download mod_wsgi.so Here or Here (for everythin 32 bit and python 3.4 on Win7 you need: mod_wsgi-py34-VC10.so)

After WAMP install – you don’t need to run full programm (I just did not see any advantages of this and disable wampmysql service) All you need is here: C:\wamp\bin\apache\apache2.4.23 Place mod_wsgi-py34-VC10.soShort Read more…

Django static files

How to find where def. static stores?

Then move it into the folder you need. Then update django’s.conf file:

And check the settings.py:

https://docs.djangoproject.com/en/1.8/howto/static-files/   Read more…

Django + apache2 + mod_wsgi

This is conf file to allow apache run Django applications.

Use these links: https://www.digitalocean.com/community/tutorials/how-to-run-django-with-mod_wsgi-and-apache-with-a-virtualenv-python-environment-on-a-debian-vps https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04 https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/ Don’t forget to use correct IPs – domains, and addresses. Especially if proxy pass is used.     Read more…

Allow Apache run python scripts

This is a simple ex. to allow apache run .py

    Read more…

addm 10 apache

Решил поставить себе триалку ADDM по работе, как водится прокинул проксю через вебсервер: И на тебе, половина линков дает ошибку 400: Bad Post Request

  Кто мне скажет че это, что ни рыл, ничего толкового не смог найти.     Read more…

Как заставить Apache ранить Redmine

HowTo configure Apache to run Redmine Читаем официальный гайд, и далее я буду его разжовывать. 09/03/2014 В общем, бред это оказался, бред сумасшедшего. В итоге я просто скачал turnkey и все равно протрахался с ним двое суток, обновляя редмайн до последней версии. Всяко лучше, чем пилить этот проклятый апач – поверьте! Read more…

How to Serve Multiple Domains Using Virtual Hosts

Снова себе напоминалка себе, забыл про вирт. хосты. На мульти доменном сервере всегда нужно делать разводку по именам виртуальных хостов, вот код, чтобы не забыть: NameVirtualHost *:80

Источник: How to Serve Multiple Domains Using Virtual Hosts | Knowledge Center | Rackspace Hosting. Read more…