These are chat archives for django/django

Feb 2018
Feb 09 2018 07:55
As far as I know FirebaseDB is a one sort of database
Then I have a question on this thing. Please share your experience with me for future discussion
Diego Castro
Feb 09 2018 10:14
Hi guys! I need some input from you. I'm looking for a lib/method/idea... to give to the admin users of our webapp the posibility of create his own forms. What we need exactly is some web interface where the user can create his own forms by himself. Do you have some ideas about this point?
Fortune Tede
Feb 09 2018 10:40
@badcoder28 @ickma thanks ..i have solved my problem
Feb 09 2018 11:11
@diegocastrum What kind of form you are doing? How many degree of freedom you are going to use?
For I myself I use let frontend render the widget into form. And I store value in the Django
Feb 09 2018 12:27
I am looking for OSM widgets to use with GeoDjango that perhaps just extends the default OSMWidget. But one that add a search field to the widget. Everything I come across is using Google Maps. Is there something interesting out there? Or perhaps a blog post? Thanks
Diego Castro
Feb 09 2018 13:06
@elcolie I mean an html <form>. We're looking for some way to create a web interface where the user can add all form fields what he needs to create a form and render it in another module/app
@elcolie Something like django-forms-builder (
Feb 09 2018 14:00
Hi everyone, anyone care to help find out what is wrong : I am getting the following logs:
Traceback (most recent call last):
  File "", line 10, in <module>
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/django/core/management/", line 443, in execute_from_command_line
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/django/core/management/", line 382, in execute
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/django/core/management/", line 261, in fetch_command
    klass = load_command_class(app_name, subcommand)
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/django/core/management/", line 69, in load_command_class
    module = import_module('' % (app_name, name))
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/django/utils/", line 35, in import_module
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/south/management/commands/", line 10, in <module>
    import django.template.loaders.app_directories
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/django/template/loaders/", line 21, in <module>
    mod = import_module(app)
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/django/utils/", line 35, in import_module
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/constance/", line 3, in <module>
    config = Config()
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/constance/", line 10, in __init__
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/constance/backends/database/", line 22, in __init__
    from constance.backends.database.models import Constance
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/constance/backends/database/", line 7, in <module>
    from picklefield import PickledObjectField
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/picklefield/", line 5, in <module>
    from picklefield.fields import PickledObjectField # reexport
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/picklefield/", line 79, in <module>
    class PickledObjectField(_get_subfield_superclass()):
  File "/home/aphya1/projects/AcornAccounting/acornaccounting/local/lib/python2.7/site-packages/django/db/models/fields/", line 15, in __new__
    new_class = super(SubfieldBase, cls).__new__(cls, name, bases, attrs)
TypeError: Error when calling the metaclass bases
    metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
Feb 09 2018 15:11
@philipmutua you have a subclass and 2 or more of the parent classes have metaclass attributes so it doesn't know which to use
but without seeing the code you're executing I couldn't tell you more
Feb 09 2018 15:16
what version of django are you using?
Feb 09 2018 15:25
cos it looks like that version of django-picklefield you're using is quite old, there's definitely an updated version (1.0.0) that might work better with newer versions of django
Feb 09 2018 16:29
hi all, im a frontend dev (angular 5) ... and im using a django backend
i would like to add a cache_version to my django settings
and use it in the base template
but it's not showing in the source of the html
im doing":
import os

import environ
from django.utils.translation import gettext_lazy as _

env = environ.Env()

CACHE_VERSION = '?v0.1.1'
from django.conf import settings as django_settings

def settings(request):
    """Add setting variables to the context."""
    return {
        'settings': {
            'BASE_URL': django_settings.BASE_URL,
            'CACHE_VERSION': django_settings.CACHE_VERSION,
<!-- {% load i18n static %} -->
<!DOCTYPE html>
        <link rel="apple-touch-icon" sizes="180x180" href="{% static 'app/assets/favicon/apple-touch-icon.png' %}{{ CACHE_VERSION }}">
do i need to run a command?
i've quit and restarted my server many times