Hi Everyone,
Does anyone experience a bug in 1.8.3 on creating ManyToMany relations? I
have the following very simple code:
from django.contrib.auth.models import User
class Agent(models.Model):
name = models.CharField(max_length=100)
users = models.ManyToManyField(User, related_name='a
use the user must be logged in to update their username you can get
> the current user from the request. You don't need to have their id inside
> the form.
> On 20/02/2015 9:49 am, "Chen Xu" wrote:
>
>> Hi
>> I am implementing a feature while building a websi
data-userid to 2, and submit the form, this will result in that
user 2 gets updated, right?
What is the correct way to prevent this?
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this grou
Hi
I am using Django to build a website.
I saw some websites have www.ABC.com, support.ABC.com, and career.ABC.com.
I wonder how this is achieved. Are these 3 different apps in 1 project, or
3 different projects.
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed
Hi Everyone,
Is there any reliable django stripe payments library that does not require
to run a python manage.py syncdb? The reason I am asking is I am uaing
SQLAlchemy instead of its builtin ORM.
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google
Hi Everyone,
I wonder if there is any good, stable and trusted django or python package
that can convert dict to xml, and load xml into dict, just like what the
json package does.
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"D
x27;s
> a no-reply address. At least that's been a case in companies I worked for,
> but it depends how big you are and how much you like your customers. You
> simply forward the mail to one or more people and filter it as it cook need
> in them look over it occasionally
> O
gmail.com
> <https://groups.google.com/d/msgid/django-users/CAJxq84-r%3DMhN_kymMLsVpKRh7boq0SYobS1v7%3Dw0G5Zbp8zpLA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>
--
⚡ Chen Xu ⚡
--
You received this me
e a username and password. Unless it's an
> alias, in which case you can't use it. Sounds like you've set up an alias
> here. You can still use it as a from email address, but can't use it to
> authenticate with smtp
> On 19/08/2014 6:13 pm, "Chen Xu" wrote:
e.com will not have a
password, but send_mail function requires an authentication. I wonder how
this is usually done.
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop rece
ps://groups.google.com/d/msgid/django-users/750fc613-0e7e-4917-ba3f-2753aab01d04%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/750fc613-0e7e-4917-ba3f-2753aab01d04%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups
Hi Everyone,
I have a dynamic page which generates some data from the database, but the
content in the database might be the same for everyone or for a long time,
so I wonder what is the best way to cache the page so that it won't be
talking to the database every time?
Thanks
--
⚡ Chen
ecify them, and call it in the following way.
send_mail('Subject here', 'Here is the message.', 'f...@example.com',
['t...@gmail.com'], fail_silently=False, auth_user='exam...@gmail.com',
auth_password='password').
It says connection refus
I am running 1.6.2
On Wed, Jul 30, 2014 at 4:02 PM, aRkadeFR wrote:
> Which version of Django are you running?
>
> On 30/07/14 15:46, Chen Xu wrote:
> > Hi Everyone:
> > I would like to call a function when my project starts, basically I want
> to
> > call a do
Chen Xu ⚡
--
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 to dj
m /usr/bin/lessc:23:in `load'
from /usr/bin/lessc:23:in `'
Where I think "/_global.css" is supposed to be generated. However, it says
no such file.
Thanks
On Tue, Jul 29, 2014 at 9:12 PM, carlos wrote:
> https://pypi.python.org/pypi/lesscss
>
> Cheers
>
&g
Hi, Everyone
I am wondering is there a good django package that can convert less file
into css file?
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emai
should I handle the
CSRF token problem in this case?
Thanks
--
⚡ Chen Xu ⚡
--
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-user
; http://django-compressor.readthedocs.org/en/latest/
>
> and other is
> https://django-pipeline.readthedocs.org/en/latest/
>
> Cheers
>
>
> On Mon, Jul 7, 2014 at 5:58 PM, Chen Xu wrote:
>
>> Hi Everyone,
>> I am working on a site, under my project in my lo
IRS = (
os.path.join(STATIC_ROOT, 'static'),
os.path.join(STATIC_ROOT, 'static_min')
)
I thought doing this will make Django to look for file in both static and
static_min, but it did not work.
Could someone help.
Thanks
--
⚡ Chen Xu ⚡
--
You received this messa
Hi Everyone,
I want to access some variables in my settings.py without starting my
server, I know I will have to run settings.configure(); however, running
settings.configure() does not allow me to access my custom variables.
What should I do with that.
Thanks
--
⚡ Chen Xu ⚡
--
You received
cloudfront, and I upload new updated files to s3, are the files still going
to be the old ones until next time the cache expires?
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this grou
:41 PM, Some Developer
wrote:
>
> On 27/06/2014 20:05, Chen Xu wrote:
>
> Hi Everyone,
> Any recommendations on Django email packages? Recently, I started looking
> at django-sitemessage, which looks pretty good to me. I wonder how it does
> comparing to others.
>
> T
Hi Everyone,
Any recommendations on Django email packages? Recently, I started looking
at django-sitemessage, which looks pretty good to me. I wonder how it does
comparing to others.
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"D
Hi Everyone,
I am writing a Django website, I am trying to minify my css and js files, I
wonder if there is a good Django package that does it well, or it does not
have to be a Django package, it could be any tools.
Thanks in advance
--
⚡ Chen Xu ⚡
--
You received this message because you
I am building a django website, and wondering what is an easy way to move
all of my code to production, is there a tool for doing that, or maybe
write my own script?
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users"
what is the
difference between those Django payment processing packages and what Stripe
does?
Thanks in advance
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emai
I am trying to host my Django website on Dreamhost, I am wondering if
Dreamhost provides a virtual linux box that can allow you to ssh in?
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe
question on stackoverflow :
http://stackoverflow.com/questions/21867839/nginx-and-django-socketio-gives-address-already-in-use-error
Could someone please some directions?
Thanks in advance.
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"D
Hi everyone,
I am wondering when I use db as my session backend, does django_session
table auto adds an entry to it when I call login?
Thanks in advance
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubs
ib application, while in your own apps
> still using sqlalchemy.
>
> Cheers!
>
>
> 21.01.2014 11:04, Chen Xu пишет:
>
> Hi everyone,
> I am wondering if there is a way to customize django's session backend
> like we can do it for user authentication backend, the reason why
ot do python
manage.py syncdb at all.
Thanks in advance.
--
⚡ Chen Xu ⚡
--
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...@googl
Hi Everyone,
I am wondering how request.User get set during the authentication, do we
have to do anything like:
request.User = User() or it will have value by itself?
Thanks in advance.
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"D
That gives me :
Encountered unknown tag 'csrf_token'.
Thanks
On Sat, Jan 18, 2014 at 8:57 PM, Mario Gudelj wrote:
> Try {% csrf_token %} by itself
> On 19/01/2014 12:12 pm, "Chen Xu" wrote:
>
>> Hi everyone,
>> I am using Jinja2 instead of D
Hi everyone,
I am using Jinja2 instead of Django's own template engine, however I am
having an issue where csrf_token is empty, I included the following line in
my form:
But csrf_token has no value.
Can someone help?
Thanks in advance
--
⚡ Chen Xu ⚡
--
You received this message be
ation?
Thanks in advance
--
⚡ Chen Xu ⚡
--
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 gr
ect.com/en/dev/ref/request-response/#setting-header-fields
>
> - Dmitry
>
>
> On Tuesday, January 7, 2014 7:48:52 PM UTC+3, Chen Xu wrote:
>>
>> Hi
>>
>> I have a question about Django X_FRAME_OPTIONS setting, I am wondering
>> how to set X_FRAME_OPTION
Hi
I have a question about Django X_FRAME_OPTIONS setting, I am wondering how
to set X_FRAME_OPTIONS to allow from, and how to specify a list of hosts
that are able to display my page in their frames?
Thanks in advance
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed
--
⚡ Chen Xu ⚡
--
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
nerate a public accessible URL based on the private URL,
and display it?
Thanks in advance
--
⚡ Chen Xu ⚡
--
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 emai
provide some sort of session?
Thanks in advance
--
⚡ Chen Xu ⚡
--
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...@googlegrou
I am planning to replace Django's ORM with sqlalchemy, does anyone know any
good tutorials step by step or github repo that show you how to do it?
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To u
?
Thanks in advance
--
⚡ Chen Xu ⚡
--
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, sen
Thanks for the info, pyapns looks pretty nice, I am wondering what are the
top python notification third party libraries in market, I mean the most
used.
Thanks
On Mon, Jan 28, 2013 at 1:32 AM, Pankaj Singh wrote:
> On 00:39 -0500 / 28 Jan, Chen Xu wrote:
> > I am recently build
Hi, Django users,
I am recently building a web service for my iphone app, just wondering if
Django can send push notifications to iPhone.
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from
p?
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For
ing database
> and to compose models for it. I'll bet that it suggests the DataTimeField.
>
> Bill
>
>
> On Tue, Jan 15, 2013 at 10:06 AM, Chen Xu wrote:
>
>> I am using my existing mysql db. I found out that if I have an enum and
>> try to insert a value not
ng (e,g.;
> PostgreSQL, MySQL, etc. - different people will have insights into
> different back ends)? Is a stack trace printed - if so, provide it for
> us? At least, what is the exact text of the error message?
>
> Bill
>
> On Tue, Jan 15, 2013 at 1:19 AM, Chen Xu wrote:
&g
create an object,
and doing a .save() gives me Warning: Data truncated for column
''. However, I checked, the length of my string did not excess
the limit.
Could anyone help?
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
&qu
.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Gr
_key=(?P[0-9a-zA-Z]+)$',
'activate_registration'),
It seems like the question mark is causing the url mapping not found issue.
Does anyone know why.
Thanks very much
Best regards
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Gro
Hi, everyone:
Does Django provide a function that can get the base_url. Ex:
http://127.0.0.1:8000/ if on local, www.example.com if on prod?
Thanks very much
Best regards
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users"
ls on production.
Therefore, could someone please help?
Thanks very much
Best regards
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsub
Hi, everyone:
I created a django form, when I validate it, the empty field that can not
be none shows error message "This field is required." Is there a way to
tell which filed is required instead of just saying "This field is
required." in general? Ex: Username is required.
Hi, everyone:
Does anyone know any blogs that write about how to quickly install and
deploy a django application on Amazon EC2?
Thanks very much
Best regards
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To po
Hi, everyone:
Could someone who has experience on both Django and Bottle please tell me
what are the some differences between those two?
Thanks very much
Best regards
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
Hi, everyone:
Since Django has its own database schema, can we still use sqlalchemy
instead?
Thanks very much
Best regards
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to dj
to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
⚡ Chen Xu ⚡
--
You received thi
settings.py
urls.py
it is like nested and duplicated directory.
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubs
ODULE = account.UserProfile",
or using Model inheritance?
Thanks very much
Best regards
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this
Hi, everyone:
I am new to Django, does anyone know whether php code works in Django?
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To u
t;
> If I recall you'll also want to set
>
> class Meta:
> app_label = "the name of your package"
>
> Because the models directory will screw up Django's ability to auto figure
> it out.
>
> On Saturday, October 15, 2011 at 12:32 AM, Chen Xu wrote:
tried both, neither
works.
Thanks
On Fri, Oct 14, 2011 at 4:31 AM, Phang Mulianto wrote:
> maybe you can try remove the models.py coz by default syncdb look for
> models.py or anything beneath models folder...but cannot do both of them...
> On Oct 14, 2011 5:49 PM, "Chen Xu"
and when i tried "python manage.py sqlall " it gives empty.
I think is it because I am not importing properly or something else is
going wrong.
Thanks
On Fri, Oct 14, 2011 at 2:46 AM, Chen Xu wrote:
> I know that will work, but what I can do to just make "python
I know that will work, but what I can do to just make "python manage.py
syncdb" work?
Thanks very much
On Fri, Oct 14, 2011 at 2:37 AM, nicolas HERSOG wrote:
> You can also type python manage.py sqlall and copy paste sql
> instructions in your bd
>
> On Fri, Oct 14, 201
ss post(models.Model):
body = models.TextField()
and then when I run "python manage.py syncdb" , it doesn't create the table
"post" for me.
Could anyone please help?
Thanks very much
Best regards
--
⚡ Chen Xu ⚡
--
You received this message because you are subscrib
ERVER['SERVER_PORT'] in
> there
> Source: http://php.net/manual/en/reserved.variables.server.php
>
>
> On Mon, Sep 26, 2011 at 3:30 PM, Chen Xu wrote:
>
>> I have a general question about PHP:
>> So basically I have a link, and I want the href to be absolute.
90/login, it is missing ":9090".
Could anyone please help?
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send e
I am thinking to buy a server, and integrated with Django environment. So
could anyone please give me some suggestions, which server is the best for
this, amazon ec2 or?
Thanks very much
Best regards
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
and delete the tables there
>
>
>
> . . . . . . . . . . . . . . . . . . . . . . . . . .
>
> **
>
> Patrick Szabo
> XSLT-Entwickler
>
> LexisNexis
> Marxergasse 25, 1030 Wien
>
> patrick.sz...@lexisnexis.at
>
> Tel.: +43 (1) 534 52 - 1573
>
> Fax: +43 (1) 534 52 - 146
>
>
> *Von:* django-users@googlegroups.com [m
sse 25, 1030 Wien
>
> patrick.sz...@lexisnexis.at
>
> Tel.: +43 (1) 534 52 - 1573
>
> Fax: +43 (1) 534 52 - 146
>
>
> *Von:* django-users@googlegroups.com [mailto:django-users@googlegroups.com]
> *Im Auftrag von *Chen Xu
> *Gesendet:* Dienstag, 15. Februar 2011 08:45
Tue, Feb 15, 2011 at 10:06 AM, Chen Xu wrote:
>
>> Hi, everyone:
>> I have a question about Django models,
>> so I created a Model:
>>
>> class Person(models.Model):
>> name = models.CharField(max_length=60)
>>
>> and ran the follwing:
&g
ain to sync my database, but it does not do it:
So I am wondering if it is because since Person model already exists, it
will just simply ignore checking if the field changes.
And what I should do to sync the database?
Thanks
--
⚡ Chen Xu ⚡
--
You received this message because you are
o
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to th
ms right, right?
Could someone please help me ??
Thanks a lot.
--
⚡ Chen Xu ⚡
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send
ject's templates directory. This can be any
> of the directories you specified in
> TEMPLATE_DIRS<http://docs.djangoproject.com/en/dev/ref/settings/#std:setting-TEMPLATE_DIRS>
> ."
>
> 2011/1/17 Chen Xu
>
> Hi, Django group:
>> I am floowing the tutorial 1 on
Hi, Django group:
I am floowing the tutorial 1 on Django site, which is a poll application
I have problem with overriding the admin page
I copied admin/base_site.html from (django/contrib/admin/templates) to
/Users/xuchen81/Django/mysite/admin/base_site.html
and add this line "/Users/xuchen81/
py manage.py runserver works fine, but I kinda want to make django-admin.py
runserver work too.
Could anyone help?
Thanks
On Sat, Jan 15, 2011 at 3:22 AM, Praveen Krishna R <
rpraveenkris...@gmail.com> wrote:
> *try *
> *manage.py runserver
> *
> On Sat, Jan 15, 2011 at
Hi, Django developers:
I am very new here, trying to set up my Django
I have a project called 'mysite'
when I run:
$ django-admin.py runserver
the terminal gives:
Error: Settings cannot be imported, because environment variable
DJANGO_SETTINGS_MODULE is undefined
then I tried this:
$ export DJANG
sorry, everyone, I just figured I made a really stupid question,
I should type import sqlite3 instead of import sqlite
Thanks everyone
On Thu, Jan 13, 2011 at 9:46 AM, Karsten Schulz wrote:
> Hi Chen,
>
> Am 13.01.2011 um 18:25 schrieb Daniel Roseman:
> > creating
> /System/Library/Frameworks/P
I dont know what is going on, could you please help?
Thanks
On Thu, Jan 13, 2011 at 9:25 AM, Daniel Roseman wrote:
> On Thursday, January 13, 2011 4:30:44 PM UTC, Chen Xu wrote:
>>
>> Hi: Django users:
>> This is my first time to install Django on my unix system, and trying to
Hi: Django users:
This is my first time to install Django on my unix system, and trying to get
my Sqlite running.
After I downloaded pysqlite-2.6.0, and run this command:
python setup.py build_static install
It gives me:
running build_static
running build_py
running build_ext
running install
ru
82 matches
Mail list logo