Re: Setting up django mailbox

2016-02-04 Thread Daniel Chimeno
This are the settings you should put: https://support.google.com/mail/troubleshooter/1668960?rd=1#ts=1665018%2C1665144 El viernes, 5 de febrero de 2016, 2:04:44 (UTC+1), learn django escribió: > > I tried both but no luck. > > On Thursday, February 4, 2016 at 3:49:48 PM UTC-8, Dheerendra Rathor w

Re: Scaling Django

2016-02-04 Thread Luis Zárate
" It's hard to hire Django engineers " I don't think that this is a problem because good software developer can learn Django faster than other frameworks. For example I have a Costa Rican startup that develop in Django, as small company in small country we don't have inversor that allows to hire a

Re: Setting up django mailbox

2016-02-04 Thread learn django
I tried both but no luck. On Thursday, February 4, 2016 at 3:49:48 PM UTC-8, Dheerendra Rathor wrote: > > Are you sure imap.company.com is handling your imap server and not > imap.google.com? > > On Thu, 4 Feb 2016 at 23:24 Daniel Chimeno > wrote: > >> Hello, >> If you are writing about his proj

Re: Setting up django mailbox

2016-02-04 Thread Dheerendra Rathor
Are you sure imap.company.com is handling your imap server and not imap.google.com? On Thu, 4 Feb 2016 at 23:24 Daniel Chimeno wrote: > Hello, > If you are writing about his project: > https://github.com/coddingtonbear/django-mailbox I guess > it's better to ask in the issues page of that projec

Re: django unittest with post not working

2016-02-04 Thread Dheerendra Rathor
302 looks Okay as you're being redirect to LOGIN_REDIRECT_URL. During posting new branch, start your URL with `/` like r = self.client.post('/brand/new/', {'name': 'poko'}) On Thu, 4 Feb 2016 at 22:32 JAMES DAMILD ETIENNE wrote: > Hi , will some help with this please , > I am writting a djang

Re: Handling cookies that contain illegal values

2016-02-04 Thread Daniel Chimeno
Hello, > > I have resolved this in my instance as follows in django/http/cookie.py: > > def parse_cookie(cookie): > cookie = re.sub('[^\x20-\x7e]+', 'X', cookie) > ... > > > > It would be preferable to write that code in a middleware than in the Django code itself. Before the middleware

Re: Setting up django mailbox

2016-02-04 Thread Daniel Chimeno
Hello, If you are writing about his project: https://github.com/coddingtonbear/django-mailbox I guess it's better to ask in the issues page of that project: https://github.com/coddingtonbear/django-mailbox/issues El jueves, 4 de febrero de 2016, 23:02:36 (UTC+1), learn django escribió: > > Hi

Re: Scaling Django

2016-02-04 Thread bobhaugen
This is a sidelight to the OP, but he did mention django forms in one message. They are a dog. I have profiled a couple of slow pages with a lot of small forms and that's where all the time was spent (rendering forms on the server). We're moving those to DRF-serving-json to a javascript client-

django unittest with post not working

2016-02-04 Thread JAMES DAMILD ETIENNE
Hi , will some help with this please , I am writting a django unittest for a web app. when i do a post like that : r = self.client.post(reverse('login'), {'username': 't...@hotmail.com', 'password': '12345'}) print 'logins page load>>', r.status_code the status code returns 302. it's

Re: Django project structure

2016-02-04 Thread André Meyer-Vitali
Hi Carl That's a great idea. So, I think the idea is to make the model flexible enough that it can be used in multiple contexts. The rest follows, accordingly. I'll give it a try. Thanks a lot for the inspiration! Cheers André On Thursday, 4 February 2016 22:05:28 UTC+1, André Meyer-Vitali w

Setting up django mailbox

2016-02-04 Thread learn django
Hi, Am trying to setup django mailbox from admin page and seeing issues. My email address is f...@company.com. We use google.com for our email service. My username is "a...@company.com", name is "abc abc" and password is "abc1234". Am putting following details on django_mailbox page. Name:

Re: Django project structure

2016-02-04 Thread Carl Meyer
Hi André, On 02/04/2016 02:47 PM, André Meyer-Vitali wrote: > How would I modify my contest app so that it knows about multiple > contests? Database models (and queries), templates, forms, urls need to > be adapted, I guess. Is it sufficient to add an ID to the models such > that a specific month'

Re: How known duration (length) video and audio files?

2016-02-04 Thread Dheerendra Rathor
This is not a Django problem. But for getting length of streams (vidoe and audio) I use python ffprobe ( https://pypi.python.org/pypi/ffprobe/0.1). This is a wrapper over ffmpeg. On Thu, 4 Feb 2016 at 18:53 ylativ oknesyl <2vlyse...@gmail.com> wrote: > I need third-party library from pypi, that

Re: Django project structure

2016-02-04 Thread André Meyer-Vitali
Thanks for your reply, Carl. How would I modify my contest app so that it knows about multiple contests? Database models (and queries), templates, forms, urls need to be adapted, I guess. Is it sufficient to add an ID to the models such that a specific month's data can be selected, for example?

Re: Django project structure

2016-02-04 Thread Carl Meyer
Hi André, On 02/04/2016 02:05 PM, André Meyer-Vitali wrote: > There's quite some confusion here about the best way to structure a > Django project. > > I'm developing a photography related web site with a news section (based > on the poll tutorial) and a contest app (among others). The contest ap

Django project structure

2016-02-04 Thread André Meyer-Vitali
Dear Django Developers There's quite some confusion here about the best way to structure a Django project. I'm developing a photography related web site with a news section (based on the poll tutorial) and a contest app (among others). The contest app should be reused every month for a new con

Re: ID for users of Speedy Net

2016-02-04 Thread Uri Even-Chen
Hi James, Thanks for your feedback. Actually I was thinking that this randomly generated number with 15 digits will be used in urls, for example of pages which don't have slugs etc. I saw similar urls in Facebook for pages who don't have a username (Facebook calls it a username), Facebook generate

Handling cookies that contain illegal values

2016-02-04 Thread William Harris
I recently ran into this problem on a production server, and it was causing my users to lose their sessions. Many browsers will happily post UTF-8 encoded data in cookie strings. This will result in cookie data such as this, which I captured from my nginx log: 'Good=1234;bad=\xe6\xb8\x85\xe9\xa

How known duration (length) video and audio files?

2016-02-04 Thread ylativ oknesyl
I need third-party library from pypi, that install he with help PIP (ffmpeg unsuitable) -- 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...

Re: How to know our Django version

2016-02-04 Thread James Bennett
Django does not have a "featured news" section. Django is not a content-management system; it's a framework for developing many types of Web applications, including content-management systems. It's likely that you were looking at a tutorial for something else that was built using Django. On Thu,

Re: ID for users of Speedy Net

2016-02-04 Thread James Schneider
> > So my question is, can I make this random ID the primary key of the User model? I don't want users to have 2 ids - one for Django and one of Speedy Net, it doesn't make sense. I want the id to be the same and unique. I also want to have an Id model to prevent a page and a user (for example) to

Re: How to know our Django version

2016-02-04 Thread Sergiy Khohlov
python import django print (django.version) Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Feb 4, 2016 at 6:15 PM, wrote: > Hello >> > > because i want to know if its possible to have "featured news" in our news > section. > > as i looked on a tutorial, its included in Django vers

Re: How should it make django test create a default_test database that is using 5 shemas ?

2016-02-04 Thread JAMES DAMILD ETIENNE
Ok thanks , make sense , 'ill try to do that thank you > > > > > -- 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

Re: How should it make django test create a default_test database that is using 5 shemas ?

2016-02-04 Thread Michal Petrucha
On Fri, Jan 29, 2016 at 02:50:07PM -0800, JAMES DAMILD ETIENNE wrote: > I have a possgres database with 5 shemas , it connects very well to it , > but when truing to do unit test on my models or view , the default table > created in sqllite3 is saysing that on of my table is not there : > > re

Re: How to know our Django version

2016-02-04 Thread communication
> > Hello > because i want to know if its possible to have "featured news" in our news section. as i looked on a tutorial, its included in Django version xxx, but not in our, so i wanted to know what is our version to know what would include to make an update of our django version. excuse

ID for users of Speedy Net

2016-02-04 Thread Uri Even-Chen
To django-users@googlegroups.com, I'm working on the next version of Speedy Net , which will be based on Django 1.9.2 and Python 3.5 / 3.4. You can see the specification of Speedy Net on https://github.com/urievenchen/speedy-net/tree/master/speedy_net/specifications (the file

Re: How should it make django test create a default_test database that is using 5 shemas ?

2016-02-04 Thread JAMES DAMILD ETIENNE
> > any help please ? > thank you > On Friday, January 29, 2016 at 6:31:17 PM UTC-5, JAMES DAMILD ETIENNE wrote: > > I have a possgres database with 5 shemas , it connects very well to it , > but when truing to do unit test on my models or view , the default table > created in sqllite3 is say

Re: ProgrammingError django_content_type already exists

2016-02-04 Thread Tim Graham
I think https://docs.djangoproject.com/en/stable/ref/django-admin/#cmdoption-migrate--fake-initial should help. On Wednesday, February 3, 2016 at 9:16:36 AM UTC-5, M Hashmi wrote: > > I've been stuck on this issue for a while now. If anyone have concrete > solution please let me know. > I subs

Squashing migrations with preserve_default=False

2016-02-04 Thread bartwojcicki
I have a migration with AlterField with default value provided and preserve_default=False. When I squash it, I got a CreateModel operation with default value for this field set. Is it a bug or intended behaviour? -- You received this message because you are subscribed to the Google Groups "Dja

Re:

2016-02-04 Thread James Schneider
>> Deploying with verbosity=0 solved my problem. >> Workaround is probably a better term than solved. ;-) >> Something is happening in that self.log( call at line 112 that make it crash on Heroku. Unsure what it is and unsure the issue is on Django side. >> Providing the code (and reasonable c

Re:

2016-02-04 Thread Sergiy Khohlov
hard to help without settings.py Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Feb 4, 2016 at 8:57 AM, Denis Bellavance wrote: > Allright, > > Deploying with verbosity=0 solved my problem. > > Something is happening in that self.log( call at line 112 that make it > crash on He