Re: Error loading static file from a NAS (CIFS mounted) Not 404...

2023-02-27 Thread Hua Liang
Okay I think I know the problem. Apache2 has a bug with CIFS, set EnableMMAP Off in config will solve this. On Monday, February 27, 2023 at 6:29:12 AM UTC-8 Hua Liang wrote: > Hello, > > I have a django site and I have two storages serving static files. > One is a hard dr

Error loading static file from a NAS (CIFS mounted) Not 404...

2023-02-27 Thread Hua Liang
Hello, I have a django site and I have two storages serving static files. One is a hard drive attached to the server and the other is a NAS share. Both are mounted and I can view the files in Ubuntu without any problems. Both are linked to Django static folder. The problem is that when I tried

Question about Django Tutorial Part 5

2015-10-15 Thread Shun Liang
Dear All, In the 5th part of the Django Tutorial ( https://docs.djangoproject.com/en/1.8/intro/tutorial05/#testing-our-new-view ), there is a helper function "create_question" in polls/test,py, which creates a question instance and returns it. However the created question instance does not

Re: Is there anything similar to phpmyadmin

2014-09-22 Thread Yuan-Liang Tang
free). > Still there're a lot of alternatives. > > воскресенье, 21 сентября 2014 г., 5:38:15 UTC+4 пользователь Yuan-Liang > Tang написал: >> >> I'd like to know if there is anything/anyway similar to phpmyadmin for >> managing MySQL DBs in a Django project or in the

Re: Is there anything similar to phpmyadmin

2014-09-20 Thread Yuan-Liang Tang
But pgadmin is for postgres, right? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email

Is there anything similar to phpmyadmin

2014-09-20 Thread Yuan-Liang Tang
I'd like to know if there is anything/anyway similar to phpmyadmin for managing MySQL DBs in a Django project or in the Python environment. Any suggestions? django-mysql-manage seems to be dead. https://pypi.python.org/pypi/django-mysql-manager/0.1.2 -- You received this message because you

Re: SQL Server Support - Does it Exist

2013-03-23 Thread Liang
Sadly, django doesn't support sql server officially is the only stopper for me to adopt django. On Friday, 15 July 2011 09:07:23 UTC+8, Russell Keith-Magee wrote: > > On Fri, Jul 15, 2011 at 6:03 AM, bruno desthuilliers > wrote: > > > > > > On 14 juil, 23:15,

comments for pinax social

2011-05-06 Thread LIU Liang
I set up a social with pinax. In the topics of tribe, I want to add the notification for the reply of a comment. But can't find the place to add code. In the template of topic.html, I find that the comment is loan as a templatetags of threadcomment. don't know how to do ; ( -- You received this

Re: How to send notification when reply to a comment?

2011-05-06 Thread LIU Liang
I am using the pinax template social. In this social, there already exist the views and templates of comment. But as the structure is too complete, I don't know where to add the code to send notification when reply a comment in a tribe. On May 5, 7:41 pm, Shawn Milochik

How to send notification when reply to a comment?

2011-05-05 Thread LIU Liang
I want to send a notification and e-mail to the one who write the comment in a topic. But didn't know how to do. Could someone give me a hand? thanks a lot -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: Attribute error

2011-04-30 Thread Yongning Liang
class wish(models.Model): wish=models.CharField(max_length=200) what's your django version On Sun, May 1, 2011 at 3:45 AM, Pulkit Mehrotra wrote: > AttributeError at /mysite/wishlist/ > > 'module' object has no attribute 'CharField' > > What does this error

Re: django-admin.py startproject mysite

2011-04-30 Thread Yongning Liang
if you tried the command django-admin.py startproject mysite and it output the usage, it mean the PATH of Python and django-admin.py is correct, maybe you type a wrong subcommand. BTW, are you install Django with setuptools(python setup.py install)? On Sat, Apr 30, 2011 at 10:16 PM, Daisy

Re: django-admin.py startproject mysite

2011-04-30 Thread Yongning Liang
or django-admin that i have > to put in my system PATH? > > On Apr 30, 4:37 am, Yongning Liang <liangyongn...@gmail.com> wrote: > > type this in Windows > > python django-admin.py startproject mysite > > if it doesn't work, make sure that bot

Re: Does django 1.3 has a ubuntu deb package released!

2011-04-29 Thread Yongning Liang
maybe there is no need to do this, you got python, and you can install Django with simple python setup.py install On Sat, Apr 30, 2011 at 10:29 AM, Korobase wrote: > Does django 1.3 has a ubuntu deb package released ! > I have googled but get none,Any one have done this? >

Re: django-admin.py startproject mysite

2011-04-29 Thread Yongning Liang
type this in Windows python django-admin.py startproject mysite if it doesn't work, make sure that both python and django-admin in you system PATH On Sat, Apr 30, 2011 at 5:38 AM, Daisy wrote: > Greetings all; > > I have a problem also with the "django-admin.py

How to send email from html?

2011-04-17 Thread LIU Liang
I want to realize the e-mail verification for the social network. But not clear about the code below: what does the '$' and the '#' mean? and the method 'submit()? {% trans "re-send verification e-mail" %} I want that after clicking the button 'Verify', it should send out an e-mail. However,

TypeError: get_models() got an unexpected keyword argument 'include_auto_created'

2011-04-07 Thread LIU Liang
I get a pinax project from SVN, then I new a django project for lance it. But when run as pydev: django. This error appears in Console: Traceback (most recent call last): File "/home/xavier/Programs/python/mysite-env/mysite/mysite/ manage.py", line 27, in execute_from_command_line()

How to send emails?

2011-03-30 Thread LIU Liang
Hello, I want to realize the verification of email when sign up. But I don't know how to send a email. for example with a account of gmail. I have tried the method following, but there's errors. Could anybody help? I create a django project, and add email configuration in settings.py. then

How to mark compulsory fields in admin interface?

2008-06-05 Thread Cliff Liang Xuan
Hi, Is there a way to put a sign, e.g. a start * beside the compulsory fields in the Django Admin interface? Imagine you have a big table accommodating all kinds of events from a 20 minute casual drink to a multi day conference. The page for programming the multi day conference will put off user

Using self generated primary key.

2008-06-04 Thread Cliff Liang Xuan
Hi,I've started using Django recently and really enjoyed it until I ran into a problem that I cannot find a solution on the net. Really hope someone can cast some light on me. Basically I want to use a random 7 digit string as the primary key of table Foo, because this id is system generated I