Skip to content

muhilvarnan/django-photography-site

Repository files navigation

Django photography site

This is simple photography site which can be used showcase image collections in an creative manner

Features

*	Clean HTML Design - Responsive and Beautifully HTML design
*	Django CMS integrated - Easily manage and upload photos in backend
*	Social Share - Facebook, Instagram, Twitter and Google Plus
*	Database - default django sqllite
*	Django solr thumbnail - dynamic file resize plugin
* 	Basic SEO implementation - Proper Meta tags and Meta Informations

#Installation * Install server level prerequisites * sudo apt-get update * sudo apt-get install build-essential * sudo apt-get install python-dev * sudo apt-get install libjpeg8-dev

* 	Clone code from GIT and Move to cloned directory
		* 	git clone https://github.com/muhilvarnan/django-photography-site.git
		*	cd django-photography-site 

*	Activate virutal Env and install required pip modules
		* 	source /PATHTO/Env/bin/activate
		*	pip install - r requirements.txt

*	Install solr thumbnail 
		*	pip install git+git://github.com/mariocesar/[email protected]

*	Makemigrations and Migrate
		*	python manage.py makemigrations
		*	python manage.py migrate

* 	Create a super user
		*	python manage.py createsuperuser

*	Runserver 
		* 	python manage.py runserver

#usage * Application : http://localhost:8000 * cms admin : http://localhost:8000/cms-administrator

#configuration - settings.py * Following configuration can be changed in settings.py file in the base app * WEBSITE_TITLE - Website title * WEBSITE_DESCRIPTION - Website meta description * WEBSITE_KEYWORDS - Website meta key words * WEBSITE_AUTHOR - Site AUthor * WEBSITE_BASE_DOMAIN - Site base domain - Need to modified in production * BASE_BACKGROUND_IMAGE_STATIC_PATH - Background image in the home page, django static file path * IMAGE_PAGINATION_COUNT - Image pagination count in category listing page

Docker

* To Pull docker images
	*	docker pull muhilvarnan/django_photography_site
* To run docker container 
	*	docker run -i -t -p 8000:8000 muhilvarnan/django_photography_site /bin/bash
* To Run application inside container (In this version, django is not service to run as daemon)- 
	*	. Env/bin/activate
	*	cd django-photography-site/
	*	python manage.py runserver 0.0.0.0:8000

References and sources

* http://tympanus.net/codrops/
* https://jquery.com
* http://tutorial.djangogirls.org

Issues