django-launch-page
==================
A launch page for a Django project to collect e-mail addresses and more.
Master Build Status
-------------------
[](https://travis-ci.org/RyanBalfanz/django-launch-page)
Develop Build Status
--------------------
[](https://travis-ci.org/RyanBalfanz/django-launch-page)
Installing `launch_page` to you Django project will give you a simple teaser page for collecting e-mail addresses, names, and IP addresses.
The IP address can be geolocated with GeoIP. For more information, see the GeoIP documentation.
Installation
------------
Install from PyPI:
pip install django-launch-page
Add `launch_page` to your `INSTALLED_APPS`:
INSTALLED_APPS = (
...
'launch_page',
)
Include the `launch_page` URLconf in your project urls.py like this:
urlpatterns = patterns('',
...
url(r'^launch_page/', include('launch_page.urls')),
)
or, bind it to the root domain:
from launch_page.urls import launch_page_urlpatterns
urlpatterns += launch_page_urlpatterns
Migrate the application:
python manage.py migrate launch_page
The use of custom templates is similar to overriding admin templates.
Contributing
------------
Create a new virtualenv:
mkvirtualenv <env_name>
First, set some environment variables:
export DJANGO_SETTINGS_MODULE=example_project.settings.local
export DJANGO_DEBUG=true # Or unset DJANGO_DEBUG to disable
export DJANGO_SECRET_KEY='your_secret_key'
Add the repository root to your `PYTHONPATH`
export PYTHONPATH=`pwd`:$PYTHONPATH
or, create a new build and install it to your virtualenv
make release
cd dist/
tar -xzvf django-launch-page-<version>
cd django-launch-page-<version>/
python setup.py install
Run the example project with either Foreman or the devserver
foreman start
python example_project/manage.py runserver
Testing across multiple Python versions is support with tox. To run the tests with tox:
make test_tox
[GeoIP]: https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoip/
[tox]: http://tox.readthedocs.org/en/latest/
[Overriding admin templates]: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates
==================
A launch page for a Django project to collect e-mail addresses and more.
Master Build Status
-------------------
[](https://travis-ci.org/RyanBalfanz/django-launch-page)
Develop Build Status
--------------------
[](https://travis-ci.org/RyanBalfanz/django-launch-page)
Installing `launch_page` to you Django project will give you a simple teaser page for collecting e-mail addresses, names, and IP addresses.
The IP address can be geolocated with GeoIP. For more information, see the GeoIP documentation.
Installation
------------
Install from PyPI:
pip install django-launch-page
Add `launch_page` to your `INSTALLED_APPS`:
INSTALLED_APPS = (
...
'launch_page',
)
Include the `launch_page` URLconf in your project urls.py like this:
urlpatterns = patterns('',
...
url(r'^launch_page/', include('launch_page.urls')),
)
or, bind it to the root domain:
from launch_page.urls import launch_page_urlpatterns
urlpatterns += launch_page_urlpatterns
Migrate the application:
python manage.py migrate launch_page
The use of custom templates is similar to overriding admin templates.
Contributing
------------
Create a new virtualenv:
mkvirtualenv <env_name>
First, set some environment variables:
export DJANGO_SETTINGS_MODULE=example_project.settings.local
export DJANGO_DEBUG=true # Or unset DJANGO_DEBUG to disable
export DJANGO_SECRET_KEY='your_secret_key'
Add the repository root to your `PYTHONPATH`
export PYTHONPATH=`pwd`:$PYTHONPATH
or, create a new build and install it to your virtualenv
make release
cd dist/
tar -xzvf django-launch-page-<version>
cd django-launch-page-<version>/
python setup.py install
Run the example project with either Foreman or the devserver
foreman start
python example_project/manage.py runserver
Testing across multiple Python versions is support with tox. To run the tests with tox:
make test_tox
[GeoIP]: https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoip/
[tox]: http://tox.readthedocs.org/en/latest/
[Overriding admin templates]: https://docs.djangoproject.com/en/dev/ref/contrib/admin/#overriding-admin-templates
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-launch-page-0.1.1.tar.gz.
File metadata
- Download URL: django-launch-page-0.1.1.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b07aa88ce4ab2d7d8a46ac76e7dde2c4ac6e03b1eeb296409dafd553ba34c49
|
|
| MD5 |
0c5719d11df6181470aaa85db6858fe5
|
|
| BLAKE2b-256 |
dbc701829a68668afb02c1052c788999061aad785d2a67191bf48a590c999b8a
|