mathiasertl / django-xmpp-account

Django application for Jabber account registration
GNU General Public License v3.0
30 stars 7 forks source link

Option to disable social buttons #12

Closed kjde closed 8 years ago

kjde commented 9 years ago

It would be nice to have an option to disable the social share buttons. They are also not working on my installation: https://zsim.de/

mathiasertl commented 9 years ago

I agree, this definetly should be implemented. HOWEVER, I'd also like to find out why the buttons are not working for your installation. Have you done python manage.py collectstatic after updating?

Your javascript/css generally does seem outdated, for example the username status below the username field ("Checking username...") should be hidden with CSS - and it's not on your site.

kjde commented 9 years ago

Seems to be the same error like #11

# python manage.py collectstatic
No handlers could be found for logger "xmppaccount.settings"

You have requested to collect static files at the destination
location as specified in your settings:

    /home/jabberac/django-xmpp-account/static

This will overwrite existing files!
Are you sure you want to do this?

Type 'yes' to continue, or 'no' to cancel: yes
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/jabberac/django-xmpp-account/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 338, in execute_from_command_line
    utility.execute()
  File "/home/jabberac/django-xmpp-account/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 330, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/jabberac/django-xmpp-account/local/lib/python2.7/site-packages/django/core/management/base.py", line 390, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/home/jabberac/django-xmpp-account/local/lib/python2.7/site-packages/django/core/management/base.py", line 441, in execute
    output = self.handle(*args, **options)
  File "/home/jabberac/django-xmpp-account/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 168, in handle
    collected = self.collect()
  File "/home/jabberac/django-xmpp-account/local/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.py", line 97, in collect
    for finder in get_finders():
  File "/home/jabberac/django-xmpp-account/local/lib/python2.7/site-packages/django/contrib/staticfiles/finders.py", line 264, in get_finders
    yield get_finder(finder_path)
  File "/home/jabberac/django-xmpp-account/local/lib/python2.7/site-packages/django/utils/lru_cache.py", line 101, in wrapper
    result = user_function(*args, **kwds)
  File "/home/jabberac/django-xmpp-account/local/lib/python2.7/site-packages/django/contrib/staticfiles/finders.py", line 277, in get_finder
    return Finder()
  File "/home/jabberac/django-xmpp-account/local/lib/python2.7/site-packages/django/contrib/staticfiles/finders.py", line 66, in __init__
    "The STATICFILES_DIRS setting should "
django.core.exceptions.ImproperlyConfigured: The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting
mathiasertl commented 9 years ago

This is an error in your Django configuration: STATIC_ROOT should be the directory by the webserver. You should not need to set the STATICFILES_DIRS setting unless you ship custom static files (which should not include the directory named by STATIC_ROOT). For more information, please google the respective django settings.

kjde commented 9 years ago

I configured by installation in the right way and it worked. What a wonder! :dango:

mathiasertl commented 9 years ago

Do you still want the feature to disable all social buttons - or are you happy with the current buttons on top?

kjde commented 9 years ago

It works fine for me now. However it would be nice to disable Shariff.

mathiasertl commented 9 years ago

I will add an option in the next days :-)