Re: Model object save gives Warning: Data truncated for column

2013-01-15 Thread Chen Xu
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

How to make django's mysql connections to use utf8mb4 ?

2013-01-23 Thread Chen Xu
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

How Django sends push notifications.

2013-01-27 Thread Chen Xu
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

Re: How Django sends push notifications.

2013-01-28 Thread Chen Xu
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

Re: Django hosting companies

2013-01-30 Thread jianhui chen
I use google app engine. On Tue, Jan 29, 2013 at 8:17 AM, francislutalo wrote: > Anyone with an idea of which are the best companies to host my django > applications? > > > > Thank you, > Regards > francislutalo > > -- > You received this message because you are subscribed to the Google Groups >

where to put a non-model class file.

2013-02-26 Thread Chen Xu
? 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

Re: url tag: "'str' object has no attribute 'regex'"

2013-04-01 Thread Wenliang Chen
Hi, I got the same issue. And I solved it doing this: urlpatterns= patterns('', (r'^login/$', 'django.contrib.auth.views.login'), <-Remove the last comma in the patterns() ) Hope this helps On Friday, May 18, 2012 5:58:28 AM UTC+8, refreegrata wrote: > > Hello list > > I know, this

Django for corporate web site

2013-08-05 Thread sean chen
I need to build a site for a small law firm. I looked at the poweredby pages http://www.djangosites.org/, but I found it shows sites for different purposes and I did not find a good example site for me to spark my thoughts further. I see there exists a focus area for e-commerce site at https:/

Re: How to do 2-ModelForm-in-1-CVB right?

2013-09-26 Thread Yu Chen
Inlineformset may solve your problem, and this http://haineault.com/blog/155/ is a good example. 在 2013年9月26日星期四UTC+8下午1时19分41秒,Adam写道: > > Hi, > > I am trying to handle 2 ModelForm in 1 view. Is that possible with CBV > solution? Does any best practise exist? > > Here is the problem in details

Re: Tango with Django tutorial, problem getting category function to pass a variable

2013-10-27 Thread Patti Chen
Hi Jimmy, Could you please check your urls.py? You need to pass category_name_url in url mapping. Read this section in the book and check this

can't import flup.server.fcgi

2011-06-01 Thread Chenglong Chen
i saw this bug has been fixed after 1.1plpha version,but it appeared now windows xp django1.3 flup1.0.2 -- 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

Problem with getting Sqlite running

2011-01-13 Thread Chen Xu
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

Re: Problem with getting Sqlite running

2011-01-13 Thread Chen Xu
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

Re: Problem with getting Sqlite running

2011-01-13 Thread Chen Xu
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/

Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-14 Thread Chen Xu
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

Re: Problem with DJANGO_SETTINGS_MODULE is undefined

2011-01-15 Thread Chen Xu
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

Problem with overriding the default Django admin page.

2011-01-17 Thread Chen Xu
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/

Re: Problem with overriding the default Django admin page.

2011-01-17 Thread Chen Xu
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

Having trouble overriding template_object_name for the list_detail in generic view

2011-02-11 Thread Chen Xu
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

Re: Having trouble overriding template_object_name for the list_detail in generic view

2011-02-11 Thread Chen Xu
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

Having trouble synchronizing the database, can someone help?

2011-02-14 Thread Chen Xu
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

Re: Having trouble synchronizing the database, can someone help?

2011-02-14 Thread Chen Xu
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

Re: Having trouble synchronizing the database, can someone help?

2011-02-15 Thread Chen Xu
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

Re: Having trouble synchronizing the database, can someone help?

2011-02-16 Thread Chen Xu
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

What is the best server for Django

2011-03-09 Thread Chen Xu
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

Why are you still spending a lot in the Outlook data sharing?

2011-03-18 Thread lala chen
Hello As we know, Exchange is a very demanding solution, and in many if not all cases requires a dedicated engineer for maintenance. If you just want to share the outlook data with multiple computers and be able to grant access rights to shared folders. You can just check to see whether WinPST can

Any reliable django stripe payments library

2015-01-19 Thread Chen Xu
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

Question about subdomains.

2015-02-10 Thread Chen Xu
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

Question about form security.

2015-02-19 Thread Chen Xu
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

Re: Question about form security.

2015-02-19 Thread Chen Xu
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

Cannot get xml using xmlhttprequest GET from an external javascript document

2015-03-14 Thread Chen Kun
I tested the link and the link returns me a XML in the browser. In my external javascript document, I try to use get XMLhttprequest to get the document but it fails. The readystate=4 but status=0. Does anyone know the reason? Thanks. -- You received this message because you are subscribed to t

settings.configure() does not allow me to access custom variables in settings.py

2014-07-04 Thread Chen Xu
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

Serving static files from another directory rather than "statics"

2014-07-07 Thread Chen Xu
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

Re: Serving static files from another directory rather than "statics"

2014-07-07 Thread Chen Xu
; 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

Re: Introducing myself and my first question

2014-07-19 Thread Edward Chen
Hi - I am kind of new myself, and I don't have all the answers to your questions, but here are some thoughts, and I could be wrong. 1. You can set up your virtualenv anywhere you like. The one I'm using right now is in ~/Envs/venv_for_my_project/ All you're doing with it is source/bin/activate.

Question about including CSRF token.

2014-07-21 Thread Chen Xu
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

Django package to convert Less to CSS

2014-07-29 Thread Chen Xu
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

Re: Django package to convert Less to CSS

2014-07-29 Thread Chen Xu
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

How to call a function when a project starts.

2014-07-30 Thread Chen Xu
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

Re: How to call a function when a project starts.

2014-07-30 Thread Chen Xu
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

How to use send_mail function.

2014-08-04 Thread Chen Xu
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

How to cache a dynamic web page in django

2014-08-06 Thread Chen Xu
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

Re: How to cache a dynamic web page in django

2014-08-07 Thread Chen Xu
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

Question about email sending with Google Apps

2014-08-19 Thread Chen Xu
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

Re: Question about email sending with Google Apps

2014-08-19 Thread Chen Xu
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:

Re: Sending email using EmailMultiAlternatives where from_email contains comma

2014-08-19 Thread Chen Xu
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

Re: Question about email sending with Google Apps

2014-08-19 Thread Chen Xu
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

Any stable and trusted packages for python XML?

2014-09-19 Thread Chen Xu
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

Re: Possible Bug - PositiveSmallIntegerField Enables Saving Negative Values

2014-09-19 Thread Patti Chen
I guess you're probably using SQLite as the database engine. "unsigned integer" and "signed integer" belong to same affinity in SQLite (http://www.sqlite.org/datatype3.html). Even if you specify "unsigned int" for the column during creation, you can save negative values without any error. If you us

Re: eCommerce Search

2014-12-18 Thread Patti Chen
You can use haystack(http://haystacksearch.org/) to communicate with search engines. On Thu, Dec 18, 2014 at 5:20 AM, Jonathan Baker wrote: > Also, check out: https://github.com/alex/django-filter > > On Wed, Dec 17, 2014 at 2:11 PM, John Rodkey wrote: >> Yes, that is what I'm looking for. I'm

Django-compressor/assets not working on Heroku

2015-01-06 Thread Po Chen
Hi there, I've been trying to get some automatic assets handling setup in my tiny django app. I've tried django-compressor and django-assets, no success so far. Both of the libraries seem to fail to create files in the staticfiles directory on Heroku. Both of them work locally with/without debug

Couldn't get django-compressor/assets to work on Heroku

2015-01-06 Thread Po Chen
Hi there, I've been trying to get some automatic assets handling setup in my tiny django app. I've tried django-compressor and django-assets, no success so far. Both of the libraries seem to fail to create files in the staticfiles directory on Heroku. Both of them work locally with/without debug

How to replace Django ORM with sqlalchemy

2013-12-02 Thread Chen Xu
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

How to display different contents when refresh every time.

2013-12-19 Thread Chen Xu
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

Question about django-boto and S3

2013-12-24 Thread Chen Xu
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

Django session question.

2013-12-24 Thread Chen Xu
-- ⚡ 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

Question about Django X_FRAME_OPTIONS setting

2014-01-07 Thread Chen Xu
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

Re: Question about Django X_FRAME_OPTIONS setting

2014-01-08 Thread Chen Xu
Ah thanks, good point. There are different ways of doing it, I am just wondering if Django itself have ALLOW_FROM as a valid value since it has deny and sameorigin. On Wed, Jan 8, 2014 at 3:41 PM, ernando wrote: > Hi Chen, > > Do you really need to set it via Django? Usually it&#

Sqlalchemy in Django with User Authentication Problem

2014-01-16 Thread Chen Xu
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

csrf_token is not being set when using Jinja2

2014-01-18 Thread Chen Xu
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

Re: csrf_token is not being set when using Jinja2

2014-01-18 Thread Chen Xu
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

Questions about how Django handles user authentication.

2014-01-19 Thread Chen Xu
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

Question about customizing Django's session backend.

2014-01-20 Thread Chen Xu
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

Re: Question about customizing Django's session backend.

2014-01-20 Thread Chen Xu
I see, thanks for your answer, however I encounter an error that says 'User' object has no attribute 'pk' when I try to do: login(request, user). Could someone help? On Tue, Jan 21, 2014 at 12:32 AM, Начаров Михаил wrote: > Hi Chen. > > There are sever

Question about django_session table.

2014-01-21 Thread Chen Xu
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

Regarding Django job market here in Perth

2014-02-02 Thread Calvin Chen
Hi Guys, Sorry to be bothersome. Do you guys happen to know any local company (based in Perth) that actually uses Python/Django technology? I have visited all of the major job websites and a few other Django-specific job websites like djangojobs.net and djangogigs.com. But I only find one or tw

Need help on token-based authentication

2014-02-06 Thread Calvin Chen
Hi, I couldn't find any real example about how to use token-based authentication in Django, and how to let it work with front-end MVC framework like AngularJS. Do you guys have any ideas? Kind Regards, Calvin -- You received this message because you are subscribed to the Google Groups "Djang

Re: Need help on token-based authentication

2014-02-06 Thread Calvin Chen
not really very great , but I think you can get a brief > idea. > Let me know if you have any questions. > > Project Repos : > https://github.com/aregee/moksaya > https://github.com/aregee/musicstore > > Regards, > Rahul > > > On Thu, Feb 6, 2014 at 2:35 PM, Ca

Questions about Django-socketio and uWsgi Nginx.

2014-02-18 Thread Chen Xu
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

Dreamhost for Django hosting.

2014-03-08 Thread Chen Xu
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 about Django Payment Processing Packages.

2014-05-27 Thread Chen Xu
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

Question about moving code to product from local or development server.

2014-06-07 Thread Chen Xu
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"

Question about minifying CSS and JS files.

2014-06-23 Thread Chen Xu
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

Questions about Django email packages.

2014-06-27 Thread Chen Xu
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

Re: Questions about Django email packages.

2014-06-27 Thread Chen Xu
: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

Question about static file serving strategy with S3 and Cloudfront

2014-07-02 Thread Chen Xu
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

Django Channel 2 - how to get the consumer of user in viewset?

2018-03-28 Thread CHEN POLO
I am upgrading the channel 1 to channel 2, I have some application wanna effect the consumer of user in viewset, are there any ways I could make it? -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop rec

分享一个用python和javascript开发的Django: advanced network website

2016-07-14 Thread Cherry Chen
大家好,我是内地的,想知道这个群里是否有来自中国内地,香港和台湾的朋友。希望大家喜欢我的分享,多多交流。 https://www.livecoding.tv/olivierpons/videos/JYpDK-django-advanced-network-website-cogofly-2 -- You received th

Re: Django timezone problem

2019-02-08 Thread Alvaro Chen
Set the timezone for the user via a property on the user is the best way. Otherwise, JS can detect the user's time zone. Use moment.js ( https://momentjs.com/timezone/docs/#/using-timezones/guessing-user-timezone/) or Intl ( https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Glob

Anyone having issues using python-social-auth?

2017-09-07 Thread Pengcheng Chen
Hey there! Glad to join the community! Hope all is well! I am having issues with the python-social-auth package in Django 1.11.5 and 1.8. I copied the example on http://python-social-auth-docs.readthedocs.io and got the error below: HTTPError at /oauth/login/twitter/ 401 Client Error: Authoriza

Re: Anyone having issues using python-social-auth?

2017-09-08 Thread Pengcheng Chen
Never mind. Changed to django-allauth. Got it working. Cheers! Ryan On Thu, Sep 7, 2017 at 12:40 PM, Pengcheng Chen wrote: > Hey there! > > Glad to join the community! Hope all is well! > > I am having issues with the python-social-auth package in Django 1.11.5 > and 1.8

DB migration bug in 1.8.3 when creating ManyToMany relation.

2015-08-03 Thread Chen Xu
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

Corrupted Migration?

2015-09-30 Thread Daniel Chen
Hi all, A migration I was running (manage.py migrate) died in the middle. I deleted the migration file, fixed the problem (wrong default value), recreated the migration, and re-ran it. But now, I'm getting an inconsistent state (error message: [Model] has no field named [field]). When I check t

Re: Corrupted Migration?

2015-09-30 Thread Daniel Chen
en at the model level. So, now I'm stuck with a model state that the previous migrations don't capture. On Wednesday, September 30, 2015 at 5:08:22 AM UTC-7, Mike Dewhirst wrote: > > On 30/09/2015 4:16 PM, Daniel Chen wrote: > > Hi all, > > > > A migration I was

Re: Corrupted Migration?

2015-09-30 Thread Daniel Chen
te Y. My database is still in state X. Does that make sense? On Wednesday, September 30, 2015 at 4:10:18 PM UTC-7, Mike Dewhirst wrote: > > On 1/10/2015 6:51 AM, Daniel Chen wrote: > > Thanks for the reply. I should have mentioned that I tried all of that: > > the problem i

Re: Corrupted Migration?

2015-10-02 Thread Daniel Chen
@Mike: I'm using Python 2.7.10 and Django 1.7. I'm not sure the ticket applies, but I appreciate the link! @James: Sorry, I misspoke! [field] actually corresponds to a old field in state X. Before adding the new fields in state Y, the migration is trying to remove some old fields in state X but

Re: Corrupted Migration?

2015-10-02 Thread Daniel Chen
@Mike: I'm using Python 2.7.10 and Django 1.7. I'm not sure the ticket applies, but I appreciate the link! @James: Sorry, I misspoke! [field] actually corresponds to a old field in state X. Before adding the new fields in state Y, the migration is trying to remove some old fields in state X but

Re: Corrupted Migration?

2015-10-20 Thread Daniel Chen
Hi all, Thanks for all the help! Sorry for the incredibly slow response, but I just wanted to give an update: The problem was that I was trying to remove a foreign key (let's call that foreign key "book", referencing a "book" table). I had to manually go into the migration and add '_id' (e.g.,

Re: Corrupted Migration?

2015-10-22 Thread Daniel Chen
RemoveField operation below the AlterUniqueTogether operation in the migration file. (Also, it turns out that removing the "_id" suffix didn't matter after all). Thanks again for the help, everyone! On Tuesday, October 20, 2015 at 10:18:02 PM UTC-7, Daniel Chen wrote: > &g

Django Book

2018-08-05 Thread Jun Chen
Does anyone know a good django book for the Django 2.0? -- 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 thi

Re: Freelance Opportunity: Django Developer for School Management System Project

2024-03-28 Thread Runkang Chen
I hope this message finds you well. I came across your "School Management System Project" with Django and I'm genuinely interested in contributing to its development. I have a strong passion for this area and believe I can bring valuable skills and insights to your project. I want to emphasize

Re: import setting error

2007-09-10 Thread Yung-Yu Chen
It seems to be a small mistake about namespace in your Python code. Try replace src = MEDIA_ROOT + 'user/defalut.jpg' with src = settings.MEDIA_ROOT + 'user/defalut.jpg' On 9/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > in settings.py: > MEDIA_ROOT = 'd:/djangopro/mysite/media/'

Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread Uri Even-Chen
can convert to Python and Django? And are you interested in helping me develop Speedy Mail, or do you know where I can find developers who may be interested? By the way, is there a simple way to convert PHP software to Python, or do we have to rewrite it again line by line? Thanks, Uri.

Re: Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread Uri Even-Chen
*Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/ <http://www.facebook.com/urievenchen> <http://plus.google.com/+urievenchen> <http://www.linkedin.com/in/urievenchen> <http://tw

Re: Speedy Mail 2.0 - a new webmail platform in Python and Django

2015-07-22 Thread Uri Even-Chen
*Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/ <http://www.facebook.com/urievenchen> <http://plus.google.com/+urievenchen> <http://www.linkedin.com/in/urievenchen> <http://tw

I'm looking for a part-time job in Django

2016-08-14 Thread Uri Even-Chen
ve any job for me. Thanks, Uri. *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/ <http://www.facebook.com/urievenchen> <http://plus.google.com/+urievenchen> <http://www.linkedin.com/in/urievenchen> <

Re: I'm looking for a part-time job in Django

2016-08-14 Thread Uri Even-Chen
Hi, How do I add my name to https://code.djangoproject.com/wiki/DevelopersForHire#Israel ? Thanks, Uri. *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/ <http://www.facebook.com/urievenchen> <http://plus.g

Models of Speedy Net

2016-08-18 Thread Uri Even-Chen
jango projects? Does it matter at all? I read something about it in Django documentation, but I don't remember exactly where. I know the constants must be first in the model, before the fields, but what about class Meta? Any help will be appreciated. Thanks, Uri. *Uri Even-Chen* [image: ph

Re: Models of Speedy Net

2016-08-18 Thread Uri Even-Chen
there another document for us? Thanks, Uri. *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/ <http://www.facebook.com/urievenchen> <http://plus.google.com/+urievenchen> <http://www.linkedin.com/i

Re: Models of Speedy Net

2016-08-18 Thread Uri Even-Chen
Thank you Asad and Avraham! *Uri Even-Chen* [image: photo] Phone: +972-54-3995700 Email: u...@speedy.net Website: http://www.speedysoftware.com/uri/en/ <http://www.facebook.com/urievenchen> <http://plus.google.com/+urievenchen> <http://www.linkedin.com/in/urievenchen> &

<    1   2   3   >