Skip to content

Commit

Permalink
Update to 2.10rc5
Browse files Browse the repository at this point in the history
  • Loading branch information
ppasq committed Jun 20, 2019
1 parent de75674 commit abece8f
Show file tree
Hide file tree
Showing 295 changed files with 10,394 additions and 5,618 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,5 @@ local_settings.py

# Sass
.sass-cache

.env
66 changes: 48 additions & 18 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ To setup your project using a local python virtual environment, follow these ins
git clone https://github.com/GeoNode/geonode-project.git -b master
mkvirtualenv my_geonode
pip install Django==1.11.16
pip install Django==1.11.20
django-admin startproject --template=./geonode-project -e py,rst,json,yml,ini,env,sample -n Dockerfile my_geonode
Expand Down Expand Up @@ -78,34 +78,64 @@ You need Docker 1.12 or higher, get the latest stable official release for your
git clone https://github.com/GeoNode/geonode-project.git -b master
mkvirtualenv my_geonode
pip install Django==1.11.16
pip install Django==1.11.20
django-admin startproject --template=./geonode-project -e py,rst,json,yml,ini,env,sample -n Dockerfile my_geonode
cd my_geonode
2. Run `docker-compose` to start it up (get a cup of coffee or tea while you wait)

Remember to update "wsgi.py" in case you are using "local_settings"
vim my_geonode/wsgi.py
--> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_geonode.local_settings")
Remember to update "wsgi.py" in case you are using "local_settings"
vim my_geonode/wsgi.py
--> os.environ.setdefault("DJANGO_SETTINGS_MODULE", "my_geonode.local_settings")

.. code:: bash
.. code:: bash
docker-compose build --no-cache
docker-compose up -d
.. code-block:: none
set COMPOSE_CONVERT_WINDOWS_PATHS=1
before running docker-compose up

3. Access the site on http://localhost/

If you want to run the instance for development
-----------------------------------------------

Use dedicated docker-compose files while developing
+++++++++++++++++++++++++++++++++++++++++++++++++++

.. note:: In this example we are going to keep localhost as the target IP for GeoNode

.. code:: bash
docker-compose -f docker-compose.development.yml -f docker-compose.development.override.yml up
How to debug
++++++++++++

.. note:: We are supposing to use IPDB for debugging which is already available as package from the container

1. Stop the container for the "django" service::

.. code:: bash

docker-compose stop django

2. Run the container again with the option for service ports::

.. code:: bash

docker-compose build --no-cache
docker-compose up -d
**NOTE for Windows users**: In case you're using the native Docker for Windows (on Hyper-V) you will probably be affected by an error related to mounting the /var/run/docker.sock volume. It's due to a `problem with the current version of Docker Compose <https://github.com/docker/for-win/issues/1829>`_ for Windows.
In this case you need to set the **COMPOSE_CONVERT_WINDOWS_PATHS** environmental variable:

.. code-block:: none
set COMPOSE_CONVERT_WINDOWS_PATHS=1
before running docker-compose up
docker-compose run -e DOCKER_ENV=development --rm --service-ports django python manage.py runserver --settings=my_geonode.settings 0.0.0.0:8000

3. Access the site on http://localhost/

If you set an IPDB debug point with ``import ipdb ; ipdb.set_trace()`` then you should be facing its console and you can see the django
server which is restarting at any change of your code from your local machine.

If you want to run the instance on a public site
------------------------------------------------
Expand Down Expand Up @@ -168,7 +198,7 @@ Hints: Configuring Requirements.txt

You may want to configure your requirements.txt, if you are using additional or custom versions of python packages. For example::

Django==1.11.16
Django==1.11.20
six==1.10.0
django-cuser==2017.3.16
django-model-utils==3.1.1
Expand Down
1 change: 1 addition & 0 deletions blog/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

21 changes: 0 additions & 21 deletions blog/management/commands/load_initial_data.py

This file was deleted.

2 changes: 1 addition & 1 deletion blog/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.11.16 on 2018-12-13 15:30
from __future__ import unicode_literals

from django.db import migrations, models
Expand Down Expand Up @@ -28,3 +27,4 @@ class Migration(migrations.Migration):
bases=('puput.entrypage',),
),
]

1 change: 1 addition & 0 deletions blog/migrations/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,4 @@ class MapEntryPage(EntryPage):
SnippetChooserPanel('map'),
]
BlogPage.subpage_types.append(MapEntryPage)

63 changes: 0 additions & 63 deletions blog/static/blog/css/admin-streamfield-styles.css

This file was deleted.

162 changes: 0 additions & 162 deletions blog/static/blog/css/main.scss

This file was deleted.

Binary file removed blog/static/blog/images/favicon.ico
Binary file not shown.
7 changes: 0 additions & 7 deletions blog/static/blog/js/main.js

This file was deleted.

Loading

0 comments on commit abece8f

Please sign in to comment.