Coder Social home page Coder Social logo

django-fluent / django-fluent.org Goto Github PK

View Code? Open in Web Editor NEW
33.0 4.0 5.0 1.62 MB

Code of django-fluent.org, also serving as example how to build django-fluent sites.

Home Page: http://django-fluent.org/

Python 46.23% JavaScript 9.70% HTML 21.55% Shell 1.17% Dockerfile 3.72% Makefile 0.79% SCSS 16.83%
website django-fluent django python

django-fluent.org's People

Contributors

pyup-bot avatar vdboor 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

Watchers

 avatar  avatar  avatar  avatar

django-fluent.org's Issues

MySQL Database error

When running ./manage.py migrate this command does not complete because of a database error:

DEBUG:django.db.backends:(0.001) SELECT django_content_type.id, django_content_type.name, django_content_type.app_label, django_content_type.model FROM django_content_type WHERE django_content_type.app_label = 'threadedcomments' ORDER BY django_content_type.name ASC; args=(u'threadedcomments',)
DatabaseError: (1170, "BLOB/TEXT column 'tree_path' used in key specification without a key length")

Installation instructions not correct

In the installation instructions you refer to the use of MySQL.

In djangofluent/settings/project.py you still have the postgresql database backend as default.

Just experimenting with your system now...

Peter

Error: TypeError: int() argument must be a string or a number, not 'Site' When trying to run: manage.py syncdb

File "/home/user/.virtualenvs/project/local/lib/python2.7/site-packages/django/db/models/fields/init.py", line 915, in get_prep_value
return int(value)
TypeError: int() argument must be a string or a number, not 'Site'

(project)user@host:~/Data/Web/project$ pip freeze
akismet==0.2.0
blessings==1.6
bpython==0.14.2
curtsies==0.1.19
Django==1.7.8
django-admin-tools==0.5.2
django-any-imagefield==0.8.2
django-any-urlfield==2.1.1
django-appconf==1.0.1
django-axes==1.3.9
django-categories==1.2.2
django-compressor==1.4
-e git+https://github.com/django/django-contrib-comments.git@8a99ed810e9e94cb9dff1c362b2c4ebe2e37dead#egg=django_contrib_comments-dev
django-crispy-forms==1.4.0
django-debugtools==1.3
-e git+https://github.com/smacker/django-filebrowser-no-grappelli.git@911318f0e735ab60485c5783759b3f6a058f2337#egg=django_filebrowser_no_grappelli-3.5.7
django-fluent-blogs==1.0
django-fluent-comments==1.0.2
django-fluent-contents==1.0.1
django-fluent-dashboard==0.5
django-fluent-pages==0.9
django-fluent-utils==1.2.1
django-google-tools==1.0.0
django-mptt==0.7.4
django-parler==1.4
-e git+https://github.com/rizumu/django-ping.git@b9e228fe1f338d87b323383509a975fd9df22ef1#egg=django_ping-origin_rizumu
django-polymorphic==0.7.1
django-polymorphic-tree==1.1
django-singleton-admin==0.0.4
django-staff-toolbar==1.0
django-tag-parser==2.1
django-taggit==0.13.0
django-taggit-autosuggest==0.2.7
django-template-analyzer==1.5
django-threadedcomments==1.0b1
django-tinymce==1.5.3
django-wysiwyg==0.7.0
future==0.14.3
greenlet==0.4.7
html5lib==1.0b6
micawber==0.3.2
Pillow==2.8.1
psycopg2==2.6
Pygments==2.0.2
python-memcached==1.54
pytz==2015.4
raven==5.2.0
requests==2.7.0
six==1.9.0
sorl-thumbnail==12.2
South==1.0.2
uWSGI==2.0.10
wheel==0.24.0

Please help!

python 3.4 + django 1.7

Environment:


Request Method: GET
Request URL: /admin/fluent_pages/page/add/?ct_id=64

Django Version: 1.9.7
Python Version: 3.4.4
Installed Applications:
['django.contrib.admin',
 'registration',
 'django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.messages',
 'django.contrib.staticfiles',
 'django.contrib.humanize',
 'django.contrib.sites',
 'django_extensions',
 'social.apps.django_app.default',
 'mptt',
 'rest_framework',
 'sorl.thumbnail',
 'compressor',
 'password_reset',
 'mathfilters',
 'generic_relations',
 'hitcount',
 'django_activeurl',
 'fluent_pages',
 'parler',
 'polymorphic',
 'polymorphic_tree',
 'fluent_pages.pagetypes.flatpage',
 'django_wysiwyg',
 'tinymce',
 'specializations',
 'api',
 'common',
 'work_sell',
 'archilance',
 'projects',
 'users',
 'reviews',
 'chat',
 'wallets',
 'ratings']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.common.CommonMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.clickjacking.XFrameOptionsMiddleware',
 'common.middleware.SetLastVisitMiddleware']


Template error:
In template /var/www/archilance/env/lib/python3.4/site-packages/fluent_pages/pagetypes/flatpage/templates/admin/fluent_pages/pagetypes/flatpage/change_form.html, error at line 0
   'str' object has no attribute 'get_ancestors'   1 : {% extends base_change_form_template %}{# = "admin/fluent_pages/page/change_form.html" #}
   2 : {% load wysiwyg %}
   3 : 
   4 : {% block extrahead %}{{ block.super }}
   5 : {% wysiwyg_setup %}
   6 : {% wysiwyg_editor "id_content" %}
   7 : {% endblock %}
   8 : 

Traceback:

File "/var/www/archilance/env/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
  174.                     response = self.process_exception_by_middleware(e, request)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/core/handlers/base.py" in get_response
  172.                     response = response.render()

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/response.py" in render
  160.             self.content = self.rendered_content

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/response.py" in rendered_content
  137.         content = template.render(context, self._request)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/backends/django.py" in render
  95.             return self.template.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  206.                     return self._render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in _render
  197.         return self.nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/loader_tags.py" in render
  173.         return compiled_parent._render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in _render
  197.         return self.nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/loader_tags.py" in render
  173.         return compiled_parent._render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in _render
  197.         return self.nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/loader_tags.py" in render
  173.         return compiled_parent._render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in _render
  197.         return self.nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/loader_tags.py" in render
  173.         return compiled_parent._render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in _render
  197.         return self.nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/loader_tags.py" in render
  173.         return compiled_parent._render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in _render
  197.         return self.nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/defaulttags.py" in render
  326.                 return nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/loader_tags.py" in render
  69.                 result = block.nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/defaulttags.py" in render
  326.                 return nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/loader_tags.py" in render
  209.                 return template.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  208.                 return self._render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in _render
  197.         return self.nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/polymorphic/templatetags/polymorphic_admin_tags.py" in render
  43.         html = self.nodelist.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render
  992.                 bit = node.render_annotated(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in render_annotated
  959.             return self.render(context)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/defaulttags.py" in render
  161.                 values = self.sequence.resolve(context, True)

File "/var/www/archilance/env/lib/python3.4/site-packages/django/template/base.py" in resolve
  736.                 new_obj = func(obj, *arg_vals)

File "/var/www/archilance/env/lib/python3.4/site-packages/polymorphic_tree/templatetags/polymorphic_tree_admin_tags.py" in mptt_breadcrumb
  28.         return list(node.get_ancestors())

Exception Type: AttributeError at /admin/fluent_pages/page/add/
Exception Value: 'str' object has no attribute 'get_ancestors'

Postgresql install also fails

I've tried the system with postgresql in a new virtualenv.

Clearly requirements.txt needs to be changed for that to work
Then I found I needed to add the line

    'OPTIONS':  {'autocommit': True},

to project.py.

./manage.py syncdb completes correctly, but now I get an error on

./manage.py migrate:

DatabaseError: relation "fluent_contents_contentitem" does not exist

I'm keen to try it out, and you must have it working somewhere...

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.