Re: Django tutorial part 4: unresolved error?

2017-11-04 Thread Su-Shin Ang
Hi all, I just realised my error, so no worries. In my 'polls/urls.py', I am supposed the specify the value of the parameter, 'app_name', as 'polls'. Instead, I used 'app_names' rather than 'app_name' - typo. My bad! Ed On Saturday, Nove

Django tutorial part 4: unresolved error?

2017-11-04 Thread Su-Shin Ang
Hi all, I am getting started with Django, and working through the tutorial. I am currently stuck at part 4, as follows. https://docs.djangoproject.com/en/1.11/intro/tutorial04/ Specifically, I am getting the following error. NoReverseMatch at /polls/1/ 'polls' is not a registered namespace

Re: Attempting to setup Graphite (Django/Gunicorn) DJANGO_PATH not set and "no such table: auth user"

2014-03-12 Thread Tony Su
> > Resolved although at the moment I don't have the answer to my specific > questions. > I found a working and maintained script for installing on Ubuntu. I can't say how extraordinary it is to actually find a Graphite install script that sets up Django in working order https://github.com/gdb

Attempting to setup Graphite (Django/Gunicorn) DJANGO_PATH not set and "no such table: auth user"

2014-03-11 Thread Tony Su
Apache 2.4 on Ubuntu 13.10 First, If anyone knows of a working install script to install Graphite on any distro preferably (but not critical) using Apache2.4, gunicorn and WSGI, I'd appreciate it. I've been wending my way through a variety of undocumented and less documented issues that differ

Re: Displaying markdown in html

2012-05-04 Thread su
doc:disable auto-escaping This will not be escaped: {{ data|safe }} -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/JtUzSEmy2X4J. To post to this group, s

Re: Displaying markdown in html

2012-05-04 Thread su
#model class Article(models.Model): udate=models.DateTimeField(auto_now=True,auto_now_add=True) markdown_content=models.TextField() html_content=models.TextField(editable=False) def save(self): self.html_content=markdown(self.markdown_content) self.update=datetime.da

Re: django- accessing items in a python dictionary

2012-04-29 Thread Hiuser Su
what is value of the etc? 2012/4/29 Alan Mo : > My dictionary is as follows: > > data={"BE1234":"abc", "BA3212":"efg", etc} > > I call it through django templates. According to the online manual, they say > "if your context contained a dictionary data, the following would display > the keys and

Re: guardian: I get ImproperlyConfigured error, but I have set ANONYMOUS_USER_ID in projectName/projectName/settings.py

2012-04-24 Thread su
"from userena.models import UserenaBaseProfile " in settings.py cause this problem. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/AA_cMGHU4XYJ. To post t

Re: guardian: I get ImproperlyConfigured error, but I have set ANONYMOUS_USER_ID in projectName/projectName/settings.py

2012-04-22 Thread su
; > Brian Schott > bfsch...@gmail.com > > > > On Apr 22, 2012, at 11:41 PM, su wrote: > > I set ANONYMOUS_USER_ID in my project setting. > It doesn't work. > > > Error message: > --- > > > Traceback (most recent call la

guardian: I get ImproperlyConfigured error, but I have set ANONYMOUS_USER_ID in projectName/projectName/settings.py

2012-04-22 Thread su
/python2.7/dist-packages/django/conf/__init__.py", line 93, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module __import__(name) File "/home/su/document/django/sim

Re: Hosting Django website

2012-04-08 Thread su
If you have vps ,django+nginx+uwsgi is an easy way. You can google "django+nginx+uwsgi " . 在 2012年4月8日星期日UTC+8下午9时59分51秒,KasunLak写道: > > Hi all, > > I have created a website using django. I want to host it now. Can you > suggest me a best way to host it? I have noticed it is possible to > hos

lose access to my app on dashboard when setting.DEBUG=False

2012-04-08 Thread sillyou su
It works fine with DEBUG=True. But when I set settings.DEBUG=False, I can,t access my app on dashboard except sites and auth. It is strange. Any idea? -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit htt

Re: Error on Tutorial Part 3 - https://docs.djangoproject.com/en/1.3/intro/tutorial03/

2012-03-02 Thread sillyou su
like this: your_project--- |---__init__.py |---settings.py |---urls.py |---manage.py |---app_A--- | |---__init__.py

How can I run my django project with django-social-auth?

2011-03-21 Thread Su Yi Kyaing
Dear All! I want to create Django login form via facebook. So I am using with django-social-auth. Can every one guide me in detail how should I do continuously after clone django-social-auth to my project? Regards Su -- You received this message because you are subscribed to the Google Groups