Giter Club home page Giter Club logo

wagtaildemo's People

Contributors

asteinhauser avatar barseghyanartur avatar benctamas avatar bertrandbordage avatar boblannon avatar chimeno avatar davecranwell avatar donspaulding avatar gasman avatar helenb avatar huxley avatar iwootten avatar jsma avatar kaedroho avatar khink avatar m1kola avatar mvantellingen avatar nealtodd avatar sobolevn avatar spapas avatar thibaudcolas avatar tobiasmcnulty avatar tomdyson avatar vccabral avatar zerolab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wagtaildemo's Issues

db migratation failed with SQLite as backend


Operations to perform:
  Synchronize unmigrated apps: modelcluster, wagtailsnippets, compressor
  Apply all migrations: wagtaildocs, wagtailadmin, wagtailcore, wagtailredirects, auth, wagtailforms, wagtailembeds, demo, wagtailusers, wagtailsearch, taggit, wagtailimages, contenttypes, sessions, admin
Synchronizing apps without migrations:
  Creating tables...
  Installing custom SQL...
  Installing indexes...
Running migrations:
  Applying demo.0001_initial...Traceback (most recent call last):
  File "/home/mellon/Wagtail/venv/lib/python3.3/site-packages/django/db/backends/utils.py", line 65, in execute
    return self.cursor.execute(sql, params)
  File "/home/mellon/Wagtail/venv/lib/python3.3/site-packages/django/db/backends/sqlite3/base.py", line 485, in execute
    return Database.Cursor.execute(self, query, params)
sqlite3.OperationalError: table demo_blogpage__new has no column named tags

Pull initial data in with migration

Currently, if we decide to change the database, we would have to update the initial data fixture so the data inside it matches the new schema.

If we pulled the data in through a migration, any changes made to the database afterwards will migrate the data as well as the schema so we wouldn't need to keep updating the initial data fixture.

Docs, getting started. Git. Permission denied (publickey). fatal: The remote end hung up unexpectedly.

Hi, guys! I'm new here, I think I've found an issue, maybe it's nothing.

I'm executing this manual:
http://wagtail.readthedocs.org/en/latest/gettingstarted.html#using-vagrant

The command:

git clone [email protected]:torchbox/wagtaildemo.git

returns:

Permission denied (publickey).
fatal: The remote end hung up unexpectedly

I'm sure it's solvable, but the instructions here:
https://github.com/torchbox/wagtaildemo/#installation

offer to use:

git clone https://github.com/torchbox/wagtaildemo.git

And this works without any issues. Maybe it makes sense to change docs to use this one?

StreamField issue

I get 'ValueError: invalid literal for int() with base 10: '' ' ,whenever I try to post using a StreamField.

the error occurs at: File "/opt/python27/lib/python2.7/site-packages/wagtail/wagtailcore/blocks/stream_block.py", line 159, in value_from_datadict

Using the latest version of wagtail/django

0030_auto_20160810_1340, 0029_unicode_slugfield_dj19 in wagtailcore

For some time I've been prototyping a web-site, started with Wagtail 1.5.3 working with SQLite.

Yesterday I shifted to Wagtail 1.6.2, my site was running OK.

Today I decided to move from SQLite to PostgreSQL, I haven't been interested in any data from SQLite nor in migratations for this DB, so I've cleaned all 'migrations' folders; created and setup PostgreSQL db; manage.py check was OK.

However,

python manage.py migrate
CommandError: Conflicting migrations detected; multiple leaf nodes in the migration graph: (0030_auto_20160810_1340, 0029_unicode_slugfield_dj19 in wagtailcore). To fix them run 'python manage.py makemigrations --merge'

python manage.py makemigrations --merge
Merging wagtailcore
Branch 0030_auto_20160810_1340
- Alter field owner on page
- Alter field owner on page
Branch 0029_unicode_slugfield_dj19
- Alter field slug on page

Merging will only work if the operations printed above do not conflict
with each other (working on different fields or models)
Do you want to merge these migration branches? [y/N] n

The following packages installed in my virtualenvironment.

pip freeze
beautifulsoup4==4.5.1
Django==1.10.1
django-appconf==1.0.2
django-compressor==2.0
django-debug-toolbar==1.5
django-el-pagination==2.1.1
django-modelcluster==2.0
django-taggit==0.18.3
django-treebeard==4.0.1
djangorestframework==3.4.6
html5lib==0.999999
Pillow==3.3.1
psycopg2==2.6.2
puput==0.6
pytz==2016.6.1
rcssmin==1.0.6
requests==2.10.0
rjsmin==1.0.12
six==1.10.0
sqlparse==0.2.0
tapioca-disqus==0.1.2
tapioca-wrapper==0.5.3
Unidecode==0.4.19
wagtail==1.6.2
Willow==0.3.1

django_libsass.SassCompiler: not found

I am not using vagrant and postgres

And i manage to install every dependencies which need to run wagtail

And successful migration after running localhost i am getting this error

/bin/sh: 1: django_libsass.SassCompiler: not found

I pasted the copy of pip freeze output here. See i having

Django==1.6.5
Pillow==2.5.2
South==1.0
Unidecode==0.04.16
argparse==1.2.1
beautifulsoup4==4.3.2
compass==0.1.4
django-appconf==0.6
django-compressor==1.4
django-libsass==0.2
django-modelcluster==0.3
django-taggit==0.12.1
django-treebeard==2.0
html5lib==0.999
psycopg2==2.5.3
requests==2.3.0
six==1.7.3
unicodecsv==0.9.4
wagtail==0.5
wsgiref==0.1.2

If you need Full traceback please click here

Fail installing packages without Postgresql

When I use SQLite as an alternative to PostgeSQL, I mean than I haven't this DB in my system. So, in my case I just commented string with psycopg2 in requirements.txt before the run pip install command. It was help for me, but it will be good, if you add this stem to README

Error when installing requirements

I've cloned this repo to checkout the wagtail demo locally. Whenever i try to run the pip install -r requirements.txt i get the following error.

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/7f/cjzthrfs7n96m12kkhfkdb7c0000gn/T/pip-build-Wn7MN7/psycopg2

AttributeError at /search/

The demo includes a search field at top right, but typing in a search term or accessing /search directly errors with:

AttributeError at /search/
'str' object has no attribute 'url'

on template line:

{% top_menu parent=site_root calling_page=self %}

stack trace points to demo/templatetags/demo_tags.py :

        menuitem.active = (False if calling_page is None
                           else calling_page.url.startswith(menuitem.url))

I changed that to

menuitem.active = False

Just to keep the demo running, but needs a better fix.

No StreamField-love in the demo

I can't find a reference to the StreamField in the demo.

This is a seller-feature for wagtail, so I would have expected some reference to this.

Default Site should really be localhost:8000

Whilst trying to implement a commenting system in the wagtaildemo using django-comments-xtd, I was thrown off course by being redirected to "example.com" after submitting a comment.

(Side issue : I had to add a get_absolute_url function in the BlogPage class in wagtaildemo's models.py to get django-comments-xtd to work)

After discussion in the wagtail google group, I discovered that the default site is defined as "example.com" and not the "localhost:8000" I was expecting. This should probably be changed in your default configuration for wagtaildemo as it kind of musses with django modules that use or expect a get_absolute_url function, and hence causes confusion in unwary django-noobs like myself ;)

Online Demo

Is wagtail so insecure that it can only run locally? =)

Deploy to Heroku not working

2015-11-30T16:14:56.988350+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch

The Procfile hard-codes the port to --http :5000. Changing it to --http :$PORT fixes Heroku deployment, but I'm not sure if it breaks stuff elsewhere.

Admin Log in

Hi In the Vagrant setup I get the home page but cannot log in into admin what is the user
name and password
Many thanks

Error on importing html5lib package

While I attempt to run demo with the command ./manage.py makemigrations, i came across import error on html5lib package. Here is my trackback.

(wagtail_demo_env) SeanMBP:wagtaildemo sean$ ./manage.py makemigrations
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/django/core/management/__init__.py", line 353, in execute_from_command_line
    utility.execute()
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/django/core/management/__init__.py", line 327, in execute
    django.setup()
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
    app_config.import_models(all_models)
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
    self.models_module = import_module(models_module_name)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/wagtaildemo/demo/models.py", line 9, in <module>
    from wagtail.wagtailcore.fields import RichTextField, StreamField
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/wagtail/wagtailcore/fields.py", line 9, in <module>
    from wagtail.wagtailcore.blocks import Block, BlockField, StreamBlock, StreamValue
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/wagtail/wagtailcore/blocks/__init__.py", line 5, in <module>
    from .field_block import *  # NOQA
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/wagtail/wagtailcore/blocks/field_block.py", line 15, in <module>
    from wagtail.wagtailcore.rich_text import RichText
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/wagtail/wagtailcore/rich_text.py", line 11, in <module>
    from wagtail.wagtailcore.whitelist import Whitelister
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/wagtail/wagtailcore/whitelist.py", line 9, in <module>
    from bs4 import BeautifulSoup, Comment, NavigableString, Tag
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/bs4/__init__.py", line 30, in <module>
    from .builder import builder_registry, ParserRejectedMarkup
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/bs4/builder/__init__.py", line 314, in <module>
    from . import _html5lib
  File "/Users/diansheng/Codebox/tryout_django/wagtail_demo_env/lib/python2.7/site-packages/bs4/builder/_html5lib.py", line 70, in <module>
    class TreeBuilderForHtml5lib(html5lib.treebuilders._base.TreeBuilder):
AttributeError: 'module' object has no attribute '_base'

And here is all i did.

  1. create a virtualenv, activate it.
  2. git clone this repo
  3. remove psycopg2 in requirement.txt as i will use sqlite
  4. pip install -r requirement.txt
  5. change database settings in base.py for sqlite
  6. ./manage.py makemigrations

Heroku deployment broken

The deploy to Heroku button doesn't works:

Traceback (most recent call last):
  File "/app/.heroku/python/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/base.py", line 440, in execute
    self.check()
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/management/base.py", line 478, in check
    include_deployment_checks=include_deployment_checks,
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/checks/registry.py", line 72, in run_checks
    new_errors = check(app_configs=app_configs)
  File "/app/.heroku/python/lib/python2.7/site-packages/django/core/checks/model_checks.py", line 28, in check_all_models
    errors.extend(model.check(**kwargs))
  File "/app/.heroku/python/lib/python2.7/site-packages/wagtail/wagtailcore/models.py", line 572, in check
    if not issubclass(edit_handler.get_form_class(cls), WagtailAdminPageForm):
  File "/app/.heroku/python/lib/python2.7/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 294, in get_form_class
    formsets=cls.required_formsets(),
  File "/app/.heroku/python/lib/python2.7/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 240, in required_formsets
    formsets.update(handler_class.required_formsets())
  File "/app/.heroku/python/lib/python2.7/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 240, in required_formsets
    formsets.update(handler_class.required_formsets())
  File "/app/.heroku/python/lib/python2.7/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 603, in required_formsets
    'widgets': child_edit_handler_class.widget_overrides(),
  File "/app/.heroku/python/lib/python2.7/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 216, in widget_overrides
    widgets.update(handler_class.widget_overrides())
  File "/app/.heroku/python/lib/python2.7/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 216, in widget_overrides
    widgets.update(handler_class.widget_overrides())
  File "/app/.heroku/python/lib/python2.7/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 516, in widget_overrides
    content_type=cls.target_content_type(), can_choose_root=cls.can_choose_root)}
  File "/app/.heroku/python/lib/python2.7/site-packages/wagtail/wagtailadmin/edit_handlers.py", line 543, in target_content_type
    cls._target_content_type = [ContentType.objects.get_for_model(target_model)]
  File "/app/.heroku/python/lib/python2.7/site-packages/django/contrib/contenttypes/models.py", line 78, in get_for_model
    "Error creating new content types. Please make sure contenttypes "
RuntimeError: Error creating new content types. Please make sure contenttypes is migrated before trying to migrate apps individually.

Installation fails on ubuntu 13.10

Hi folks,

The installation fails on Ubuntu 13.10. Both in a virtualenv and in a virtualbox the demosite does not get up and running.

The virtualbox install gives me the following traceback:

Traceback (most recent call last):
File "./manage.py", line 10, in

execute_from_command_line(sys.argv)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/core/management/init.py", line 399, in execute_from_command_line

utility.execute()
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/core/management/init.py", line 392, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/core/management/init.py", line 272, in fetch_command

klass = load_command_class(app_name, subcommand)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/core/management/init.py", line 75, in load_command_class

module = import_module('%s.management.commands.%s' % (app_name, name))
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module

import(name)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/south/management/commands/init.py", line 10, in

import django.template.loaders.app_directories
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/template/loaders/app_directories.py", line 25, in

raise ImproperlyConfigured('ImportError %s: %s' % (app, e.args[0]))
django.core.exceptions
.
ImproperlyConfigured
:
ImportError wagtail.wagtailembeds: No module named requests

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chmod +x /tmp/vagrant-shell && /tmp/vagrant-shell wagtaildemo

I then ran pip install requests and synced the db. The following error I get is:

Internal Server Error: /admin/
Traceback (most recent call last):
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 90, in get_response
response = middleware_method(request)
File "/home/vagrant/.virtualenvs/wagtaildemo/src/wagtail/wagtail/wagtailcore/middleware.py", line 11, in process_request
request.site = Site.find_for_request(request)
File "/home/vagrant/.virtualenvs/wagtaildemo/src/wagtail/wagtail/wagtailcore/models.py", line 50, in find_for_request
return Site.objects.get(hostname=hostname)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/models/manager.py", line 151, in get
return self.get_queryset().get(_args, *_kwargs)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/models/query.py", line 301, in get
num = len(clone)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/models/query.py", line 77, in len
self._fetch_all()
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/models/query.py", line 854, in _fetch_all
self._result_cache = list(self.iterator())
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/models/query.py", line 220, in iterator
for row in compiler.results_iter():
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 710, in results_iter
for rows in self.execute_sql(MULTI):
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 781, in execute_sql
cursor.execute(sql, params)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/backends/util.py", line 69, in execute
return super(CursorDebugWrapper, self).execute(sql, params)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
return self.cursor.execute(sql, params)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/utils.py", line 99, in exit
six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/home/vagrant/.virtualenvs/wagtaildemo/local/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
return self.cursor.execute(sql, params)
ProgrammingError: relation "wagtailcore_site" does not exist
LINE 1: ...ge_id", "wagtailcore_site"."is_default_site" FROM "wagtailco...

I cannot get any further.

I also tried the install in a virtualenv. Unsuccesfully.
So far I did not get it to work.

BTW/ Honestly: pip + venv is really the way to go to sell your package in the django community. Virtualbox is nice, but a lot more of a hassle.

Bug - Redirect loop

There seems to be a bug of redirection loop when a user (created without any admin/editor roles) attempts to log in. I was trying out the demo and apparently the admin interface does not cater for users without any roles.

It would be nice to know if there is a workaround this issue. Thanks!

P.S.: I am a newb here trying to learn new stuff in web dev using python frameworks

django-treebeard version bump

Using the demo setup instructions (in a virtualenv with python 3.4), I got:

$ ./manage.py load_initial_data
/Users/shacker/Sites/virtualenvs/wagtaildemo/lib/python3.4/site-packages/treebeard/mp_tree.py:102: RemovedInDjango18Warning: `MP_NodeManager.get_query_set` method should be renamed `get_queryset`.
  class MP_NodeManager(models.Manager):

I noticed there was a later version of treebeard available, and was able to solve this with:

pip uninstall django-treebeard
pip install django-treebeard==3.0

I was then able to :

./manage.py load_initial_data

and run the app successfully.

top_menu

in demo/templatetags top_menu
if the variable calling_page is str ,there will generate error

Unicode-objects must be encoded before hashing

Hi guys, i'm testing my site and i find a issue with the ical export function:

Traceback:
File "/media/tulipan/Datos/Proyectos/Trabajo/CCCT/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
  132.                     response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/media/tulipan/Datos/Proyectos/Trabajo/CCCT/lib/python3.4/site-packages/wagtail/wagtailcore/views.py" in serve
  25.     return page.serve(request, *args, **kwargs)
File "/media/tulipan/Datos/Proyectos/Trabajo/CCCT/ccct/core/models.py" in serve
  769.                     export_event(self, 'ical'),
File "/media/tulipan/Datos/Proyectos/Trabajo/CCCT/ccct/core/utils.py" in export_event
  57.         uid = hashlib.sha1(event.url + str(start_datetime)).hexdigest() + '@ccct'

Exception Type: TypeError at /eventos/segunda-version-de-la-pagina/
Exception Value: Unicode-objects must be encoded before hashing

Can anyone help me with this?

One line install not working on Ubuntu 13.10

Running one line install script on a new, untouched Digital Ocean, Ubuntu 13.10 dropplet. Appears to complete install:

"Wagtail lives!

The public site is at http://109.832.78.41/
and the admin interface is at http://109.832.78.41/admin/"

But nothing can be found at this address in the browser. Could be to do with the following message?

ubuntu.sh: line 94: wagtaildemo/mywagtail/uwsgi_conf.ini: No such file or directory
uwsgi start/running, process 16471

No module named wagtail.wagtailforms

Here what i did

Without virtualbox and vagrant .

i managed to install all decencies to up this code using pip install. I am using mysql to set up database. when i run this command manage.py syncdb . Its showing this error ..

(env) C:\Python27\Scripts\website\wagtaildemo>manage.py syncdb
ImportError: No module named wagtail.wagtailforms

I tried to solve but sitll error coming ...

SQLite instructions need improving

The instructions in the README say SQLite3 is fine, just change ENGINE. But NAME is set to 'wagtaildemo', which will cause it to try to work with ./wagtaildemo as its database file, and that will be the app directory. The instructions should say something like “and add a .sqlite suffix to the NAME (to avoid a clash with the directory name)”.

More dependencies

Just FYI, on Fedora 20 I also had to install:

  • postgresql - Not planning on using it, but the installer complained
  • postgresql-devel - Could not find libpq-fe.h
  • python-devel - Could not find Python.h
  • libxml2-devel - Could not find libxml/xmlversion.h
  • libxslt-devel - ditto

Wagtail looks cool.. If I can get it to run, I'll make a docker image

Debian install script failing on new v7 box

Running the Debian one-liner on a new, clean Debian 7 box with Digital Ocean.
(curl -O https://wagtail.io/debian.sh; bash debian.sh)

Script gets all the way through, but can't access Wagtail demo at the IP when finished.

Installing with default project name and project location.

Only error I can see is right at the end with uwsgi:

Successfully installed uwsgi
Cleaning up...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   623  100   623    0     0   9382      0 --:--:-- --:--:-- --:--:-- 18878
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
chmod: cannot access `/etc/init.d/uwsgi': No such file or directory
update-rc.d: using dependency based boot sequencing
update-rc.d: error: unable to read /etc/init.d/uwsgi
uwsgi: unrecognized service
Restarting nginx: nginx.


Wagtail lives!


The public site is at http://107.170.78.41/
and the admin interface is at http://107.170.78.41/admin/

doesn't work in windows

Looks like the scripts have /r in them, causing the git pull in windows to bring down wrong files. I'll try again and post more info

Ubuntu install script failing on new 14.04

Running the Ubuntu one-liner on a new, clean Ubuntu 14.04 box with Digital Ocean.
(curl -O https://wagtail.io/ubuntu.sh; bash ubuntu.sh)

Script gets all the way through, but can't access Wagtail demo at the IP when finished.

Looking back through the messages in the terminal, seems to be an error at createdb stage, "Peer authentication failed for user 'postgres'"

See below:

Cleaning up...
swapoff on /tmpswap
createdb: could not connect to database template1: FATAL:  Peer authentication failed for user "postgres"
Syncing...
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
  execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
  utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
  self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
  self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
  output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 415, in handle
  return self.handle_noargs(**options)
File "/usr/local/lib/python2.7/dist-packages/south/management/commands/syncdb.py", line 92, in handle_noargs
  syncdb.Command().execute(**options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
  output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 415, in handle
  return self.handle_noargs(**options)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/commands/syncdb.py", line 57, in handle_noargs
  cursor = connection.cursor()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 162, in cursor
  cursor = util.CursorWrapper(self._cursor(), self)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 132, in _cursor
  self.ensure_connection()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 127, in ensure_connection
  self.connect()
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 99, in __exit__
  six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 127, in ensure_connection
  self.connect()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 115, in connect
  self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 114, in get_new_connection
  return Database.connect(**conn_params)
File "/usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py", line 164, in connect
  conn = _connect(dsn, connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: FATAL:  Peer authentication failed for user "postgres"

Traceback (most recent call last):
File "./manage.py", line 10, in <module>
  execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
  utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
  self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
  self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
  output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/south/management/commands/migrate.py", line 111, in handle
  ignore_ghosts = ignore_ghosts,
File "/usr/local/lib/python2.7/dist-packages/south/migration/__init__.py", line 200, in migrate_app
  applied_all = check_migration_histories(applied_all, delete_ghosts, ignore_ghosts)
File "/usr/local/lib/python2.7/dist-packages/south/migration/__init__.py", line 79, in check_migration_histories
  for h in histories:
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 96, in __iter__
  self._fetch_all()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 857, in _fetch_all
  self._result_cache = list(self.iterator())
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 220, in iterator
  for row in compiler.results_iter():
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 713, in results_iter
  for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 785, in execute_sql
  cursor = self.connection.cursor()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 162, in cursor
  cursor = util.CursorWrapper(self._cursor(), self)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 132, in _cursor
  self.ensure_connection()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 127, in ensure_connection
  self.connect()
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 99, in __exit__
  six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 127, in ensure_connection
  self.connect()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 115, in connect
  self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 114, in get_new_connection
  return Database.connect(**conn_params)
File "/usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py", line 164, in connect
  conn = _connect(dsn, connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: FATAL:  Peer authentication failed for user "postgres"

Getting object list
Traceback (most recent call last):
File "./manage.py", line 10, in <module>
  execute_from_command_line(sys.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
  utility.execute()
File "/usr/local/lib/python2.7/dist-packages/django/core/management/__init__.py", line 392, in execute
  self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 242, in run_from_argv
  self.execute(*args, **options.__dict__)
File "/usr/local/lib/python2.7/dist-packages/django/core/management/base.py", line 285, in execute
  output = self.handle(*args, **options)
File "/usr/local/lib/python2.7/dist-packages/wagtail/wagtailsearch/management/commands/update_index.py", line 27, in handle
  for obj in model.get_indexed_objects():
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 96, in __iter__
  self._fetch_all()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 857, in _fetch_all
  self._result_cache = list(self.iterator())
File "/usr/local/lib/python2.7/dist-packages/django/db/models/query.py", line 220, in iterator
  for row in compiler.results_iter():
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 713, in results_iter
  for rows in self.execute_sql(MULTI):
File "/usr/local/lib/python2.7/dist-packages/django/db/models/sql/compiler.py", line 785, in execute_sql
  cursor = self.connection.cursor()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 162, in cursor
  cursor = util.CursorWrapper(self._cursor(), self)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 132, in _cursor
  self.ensure_connection()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 127, in ensure_connection
  self.connect()
File "/usr/local/lib/python2.7/dist-packages/django/db/utils.py", line 99, in __exit__
  six.reraise(dj_exc_type, dj_exc_value, traceback)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 127, in ensure_connection
  self.connect()
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/__init__.py", line 115, in connect
  self.connection = self.get_new_connection(conn_params)
File "/usr/local/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py", line 114, in get_new_connection
  return Database.connect(**conn_params)
File "/usr/local/lib/python2.7/dist-packages/psycopg2/__init__.py", line 164, in connect
  conn = _connect(dsn, connection_factory=connection_factory, async=async)
django.db.utils.OperationalError: FATAL:  Peer authentication failed for user "postgres"

tags can't be edited Blogpost

Only tags added when the blogpost is created are displayed in the public site, any added tags appear on the wagtail admin editing interface, but do not get added to the public interface.

vagrant up fails

Following the instructions outlined in the docs the current demo fails on vagrant up as follows;

$ vagrant up
...
...
...
==> default: Successfully installed Django-1.7.8 Pillow-2.8.1 South-1.0 Unidecode-0.4.17 beautifulsoup4-4.3.2 dj-database-url-0.3.0 dj-static-0.0.6 django-appconf-1.0.1 django-compressor-1.5 django-libsass-0.3 django-modelcluster-0.6.2 django-taggit-0.14.0 django-treebeard-2.0 gunicorn-19.1.1 html5lib-0.999 libsass-0.8.1 psycopg2-2.6 pytz-2015.4 requests-2.7.0 six-1.9.0 static3-0.6.0 wagtail-0.8.7
==> default: Traceback (most recent call last):
==> default:   File "/home/vagrant/.virtualenvs/wagtaildemo/lib/python3.4/site-packages/django/conf/__init__.py", line 94, in __init__
==> default:     mod = importlib.import_module(self.SETTINGS_MODULE)
==> default:   File "/usr/local/lib/python3.4/importlib/__init__.py", line 109, in import_module
==> default:     return _bootstrap._gcd_import(name[level:], package, level)
==> default:   File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
==> default:   File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
==> default:   File "<frozen importlib._bootstrap>", line 2224, in _find_and_load_unlocked
==> default: ImportError: No module named 'wagtaildemo.settings'
==> default: 
==> default: During handling of the above exception, another exception occurred:
==> default: 
==> default: Traceback (most recent call last):
==> default:   File "/vagrant/manage.py", line 10, in <module>
==> default:     execute_from_command_line(sys.argv)
==> default:   File "/home/vagrant/.virtualenvs/wagtaildemo/lib/python3.4/site-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
==> default:     utility.execute()
==> default:   File "/home/vagrant/.virtualenvs/wagtaildemo/lib/python3.4/site-packages/django/core/management/__init__.py", line 345, in execute
==> default:     settings.INSTALLED_APPS
==> default:   File "/home/vagrant/.virtualenvs/wagtaildemo/lib/python3.4/site-packages/django/conf/__init__.py", line 46, in __getattr__
==> default:     self._setup(name)
==> default:   File "/home/vagrant/.virtualenvs/wagtaildemo/lib/python3.4/site-packages/django/conf/__init__.py", line 42, in _setup
==> default:     self._wrapped = Settings(settings_module)
==> default:   File "/home/vagrant/.virtualenvs/wagtaildemo/lib/python3.4/site-packages/django/conf/__init__.py", line 98, in __init__
==> default:     % (self.SETTINGS_MODULE, e)
==> default: ImportError: Could not import settings 'wagtaildemo.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named 'wagtaildemo.settings'

A git status shows the following;

$ git st
On branch master
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

    deleted:    wagtaildemo/__init__.py
    deleted:    wagtaildemo/heroku_wsgi.py
    deleted:    wagtaildemo/settings/__init__.py
    deleted:    wagtaildemo/settings/base.py
    deleted:    wagtaildemo/settings/dev.py
    deleted:    wagtaildemo/settings/heroku.py
    deleted:    wagtaildemo/settings/local.py.example
    deleted:    wagtaildemo/settings/production.py
    deleted:    wagtaildemo/urls.py
    deleted:    wagtaildemo/wsgi.py

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    __init__.py
    heroku_wsgi.py
    settings/
    urls.py
    wsgi.py

Which seems a little odd, I certainly didn't delete them.

A simple (and extremely hacky) fix is to do the following;

$ git diff Vagrantfile
diff --git a/Vagrantfile b/Vagrantfile
index 8a2473c..f2bca89 100644
--- a/Vagrantfile
+++ b/Vagrantfile
@@ -39,6 +39,8 @@ Vagrant.configure(2) do |config|
   # the path on the guest to mount the folder. And the optional third
   # argument is a set of non-required options.
   # config.vm.synced_folder "../data", "/vagrant_data"
+  config.vm.synced_folder "./", "/vagrant/wagtaildemo"
+  config.vm.synced_folder "settings", "/vagrant/wagtaildemo/settings"

   # Provider-specific configuration so you can fine-tune various
   # backing providers for Vagrant. These expose provider-specific options.

/bin/sh: 1: django_libsass.SassCompiler: not found

I have the same problem as #39, but the solution to install libsass does not apply for me. My pip freeze output is:

Django==1.7.4
django-appconf==0.6
django-compressor==1.4
django-libsass==0.2
libsass==0.6.2
six==1.9.0

When I start the development server python manage.py runserver everything is fine, but when I use Apache and wsgi, the error occurs during template rendering:

/bin/sh: 1: django_libsass.SassCompiler: not found

I am using virtualenv, python3, and according to the debug output, the virtualenv is found in the python path. Any hints? Thanks :)

./manage.py createsuperuser error

Following the vagrant setup returns:

django.db.utils.ProgrammingError: relation "auth_user" does not exist
LINE 1: ...user"."is_active", "auth_user"."date_joined" FROM "auth_user...

Following the full install instructions (for setup without vagrant) fixes...

Tests

Morning all

Whats the chances of you sticking some tests into this demo app for others to build upon as they develop it?

I can see you've got great coverage of wagtail itself, so it may not be such a big deal to start sticking some into this app?

Deploy to Heroku Error

I used the "Deploy to Heroku" button to try out the wagtaildemo but received this error:
Run scripts & scale dynos
There was an issue while running the post deploy script:

screenshot from 2015-01-30 06 20 12

Add a Dockerfile

With Docker we will be able to get wagtail running in a isolated container (like in vagrant). I think it is a great alternative.

https://www.docker.io

I can't promise anything for now, but if I write the Dockerfile you willing to accept a pull request?

Windows bashrc issue

I get this error when ssh into the machine..
"-bash: $'\r': command not found"

The dos2unix helped me cleaned the etc-bash.bashrc.

Installation fails

Successfully installed Django South psycopg2 django-compressor django-debug-toolbar gunicorn fabric django-celery django-modelcluster wagtail elasticutils pyelasticsearch requests Embedly redis django-redis-cache django-taggit Pillow beautifulsoup4 lxml BeautifulSoup django-appconf sqlparse paramiko
 celery simplejson six httplib2 pycrypto ecdsa pytz billiard kombu amqp anyjson
Cleaning up...
/home/vagrant/.bashrc: line 4: $'\r': command not found
/home/vagrant/.bashrc: line 6: $'return\r': command not found
/home/vagrant/.bashrc: line 7: $'\r': command not found
/home/vagrant/.bashrc: line 11: $'\r': command not found
: invalid shell option name 13: shopt: histappend
/home/vagrant/.bashrc: line 14: $'\r': command not found
/home/vagrant/.bashrc: line 18: $'\r': command not found
: invalid shell option name 21: shopt: checkwinsize
/home/vagrant/.bashrc: line 22: $'\r': command not found
/home/vagrant/.bashrc: line 25: $'\r': command not found
/home/vagrant/.bashrc: line 25: $'\r': command not found
/home/vagrant/.bashrc: line 32: syntax error near unexpected token `$'in\r''
'home/vagrant/.bashrc: line 32: `case "$TERM" in
: No such file or directory
No error message

Full log: http://pastebin.com/uvEHi1q5
Running Vagrant 1.3.4, VirtualBox 4.2.18 on Windows 7.

Questions: one about urls, one about models

Hi guys,

I have finally completed my project with django wagtail is a great tool, I love it, but I have two questions to finish the job properly.

First, I need to get the url of two pages, or they may be, but given finds its slug or title, nothing else, this is so that the url is global, the base.html I want to put in, and follow the same in all pages, but not how to do this.

I have a problem when calling the feed_image of a standard page from a carousel. In my template I call as follows: carousel_item.link_page.feed_image, as you can see, the artifact that relates to my page, which is in fact the home page is a standard page, which in turn has a feed_image, are several related to the home page, that is, several devices in the carousel, and when put in the template, I can access all areas of the page, with excepsión of feed_image, I have not checked whether the field search_index have that problem, but with this field have feed_image problem and do not know how to fix it, I need to bring that image to bring it into the template, to make a menu with pictures, but so far I could.

It is very urgent to solve these problems.

Thank you very much for everything friend. Thanks for the show.

What license is wagtaildemo under?

Hey folks,

I may have just missed it, but I can't find a license in the code. Grep and github's search pull up a couple of licenses in the included JS, but that's it. Do you know what license wagtaildemo's under?

Thanks!

P.S. Wagtail (and wagtaildemo) both look like incredible projects.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.