Skip to content

mfrlin/TPO

Repository files navigation

Dependencies:
	pip install -r requirements.txt

	- local smtp server
	apt-get install postfix
	- broker for celery (RabbitMQ)
	apt-get install rabbitmq-server

Debug:
	- Create local_settings.py for custom settings (not required)
	- ./manage.py syncdb --all
	- ./manage.py migrate --fake
	- ./manage.py runserver
	- http://localhost:8000

Schema migrations:
	When you create a new app with models.py: ./manage.py schemamigration someapp --initial; ./manage.py migrate
	When you modify models.py: ./manage.py schemamigration someapp --auto; ./manage.py migrate
	When you git pull new migrations: ./manage.py migrate

3rd party login:
	- Set SOCIAL_LOGIN = True in local_settings.py
	- Add client ids and secrets at /admin/socialaccount/socialapp/

Celery task queue:
	Start rabbitmq: sudo rabbitmq-server -detached
	Stop rabbitmq: sudo rabbitmqctl stop
	Start celery worker: celery -A enarocanje worker -l info

	First start rabbitmq and then celery worker.

MailChimp solution for ssl cert verify problem...
	#Backup old cert
	sudo mv /usr/local/lib/python2.7/dist-packages/httplib2/cacerts.txt /usr/local/lib/python2.7/dist-packages/httplib2/cacerts.txt.old
	#replace with this one
	sudo mv ./cacert.pem /usr/local/lib/python2.7/dist-packages/httplib2/cacerts.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published