Open kartikdanidhariya opened 10 years ago
I read #79 i change in template {% url newsletter_newsletter_contact slug=newsletter.slug,uidb36=uidb36,token=token %} to {% url 'newsletter_newsletter_contact' slug=newsletter.slug uidb36=uidb36 token=token %} in three template 1)newsletter_link_site.html 2)newsletter_image_tracking.html 3)mailing_list_unsubscribe.html
But still it give same error.
Set DEBUG = True
in the project settings, and read the stack trace. It's a problem in the template the TemplateSyntaxError
says. -- There you go. What if you fix it this way?
Arguments for url
must be separated by blanks, not colons. See https://docs.djangoproject.com/en/1.5/ref/templates/builtins/#url
I change in all three template but now it can't trow error , but also i check that mail is not send to mail_list user
Now its working , Thanks for reply , Pls tell me how we change contain of email
When i click on newsletter>View statistics it gives following error
TemplateSyntaxError at /statistics/test-newsletter/
'adminmedia' is not a valid tag library: Template library adminmedia not found, tried
You need to give more context. From the error message it looks like we have a TemplateSyntaxError
again. Some template in the statistics/
folder is broken.
I've never heard of any adminmedia
tag library, so I'd suppose you're missing some slashes in a path to static data being referred to in that template, which should be something like 'admin/media/'
(look for 'admin', 'media'
-- maybe).
However, without any context this is just guessing, really. Look into the stack trace, then fix the affected template.
sorry for reply late
When i click on newsletter>View statistics it gives following error
Error during template rendering
In template /home/keyur/fedena_django/local/lib/python2.7/site-packages/emencia.django.newsletter-0.2-py2.7.egg/emencia/django/newsletter/templates/newsletter/newsletter_statistics.html, error at line 8
"{% block extrastyle %}{{ block.super }} link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" "
After that i replace the {% admin_media_prefix %} to {{ STATIC_URL }} And remove {% load adminmedia %}
so now it gives following error NoReverseMatch at /statistics/test2/
Reverse for 'newsletter_newsletter_charts object.slug' with arguments '()' and keyword arguments '{}' not found. In template /home/keyur/fedena_django/local/lib/python2.7/site-packages/emencia.django.newsletter-0.2-py2.7.egg/emencia/django/newsletter/templates/newsletter/newsletter_statistics.html, error at line 39
{"data-file": "{% url 'newsletter_newsletter_charts object.slug' %}"});
how can i solve this error
Also when i click on newsletter > contacts in there are three buttons 1) Add to a mailing list 2) Export contact as VCard 3) Export contact as Excel
so it gives following error
TypeError at /en/admin/newsletter/contact/create_mailinglist/
init() takes exactly 13 arguments (12 given)
My traceback is
Environment:
Request Method: GET Request URL: http://127.0.0.1:8000/en/admin/newsletter/contact/create_mailinglist/
Django Version: 1.5.1 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'django.contrib.admin', 'django.contrib.admindocs', 'south', 'fedenadata', 'registration', 'profiles', 'cms', 'mptt', 'menus', 'south', 'sekizai', 'easy_thumbnails', 'cms.plugins.flash', 'cms.plugins.googlemap', 'cms.plugins.link', 'cms.plugins.text', 'filer', 'cmsplugin_filer_file', 'cmsplugin_filer_folder', 'cmsplugin_filer_image', 'cmsplugin_filer_teaser', 'cmsplugin_filer_video', 'hvad', 'vrs_image_slider', 'vrs_widget_slider', 'vrs_image_gallery', 'multilingual_news', 'degree', 'domain', 'course', 'subject', 'major', 'exam', 'college', 'subject_element', 'django_extensions', 'sorl.thumbnail', 'tagging', 'emencia.django.newsletter', 'tinymce') Installed Middleware: ('django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.locale.LocaleMiddleware', 'django.middleware.doc.XViewMiddleware', 'cms.middleware.page.CurrentPageMiddleware', 'cms.middleware.user.CurrentUserMiddleware', 'cms.middleware.toolbar.ToolbarMiddleware', 'cms.middleware.language.LanguageCookieMiddleware')
Traceback: File "/home/keyur/fedena_django/local/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response
Exception Type: TypeError at /en/admin/newsletter/contact/create_mailinglist/ Exception Value: init() takes exactly 13 arguments (12 given)
Pls tell me how can i solve these errors
I am using emencia.django.newsletter in django-cms my pip freeze is
BeautifulSoup==3.2.1 Django==1.5.1 MySQL-python==1.2.5 Pillow==2.3.0 South==0.8.4 WebOb==1.4 WebTest==2.0.16 Whoosh==2.6.0 argparse==1.2.1 beautifulsoup4==4.3.2 chardet==2.3.0 cmsplugin-filer==0.9.5 cmsplugin-nivoslider==0.5.2 django-classy-tags==0.5.1 django-cms==2.4.3 django-cms-themes==1.0.11 django-extensions==1.4.6 django-filer==0.9.5 django-grappelli==2.4.10 django-hvad==0.3 django-mptt==0.5.2 django-polymorphic==0.5.3 django-registration==1.0 django-sekizai==0.7 django-suit==0.2.10 django-tagging==0.3.4 django-tinymce==1.5.3 django-webtest==1.7.7 djangocms-utils==0.9.5 easy-thumbnails==2.1 emencia.django.newsletter==0.2 html2text==2014.9.25 html5lib==0.999 python-dateutil==2.2 pytz==2014.7 six==1.7.3 sorl-thumbnail==11.12 surlex==0.2.0 tagging==0.2.1 vobject==0.6.6 waitress==0.8.9 wsgiref==0.1.2 xlrd==0.9.3 xlwt==0.7.5
When i send news letter it throw following error TemplateSyntaxError at /en/admin/newsletter/newsletter/
Could not parse the remainder: ',uidb36=uidb36,token=token' from 'newsletter.slug,uidb36=uidb36,token=token'
How can i solve this i in trouble Pls Help!!, Thanks in advance!!!