Django 1.10 with Python 3.5 on Mac with Fink

2017-01-30 Thread Alan
So I installed django 1.10 and then when I try to do this; python3.5 -m django --version Traceback (most recent call last): File "/sw/lib/python3.5/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/sw/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run

Re: form_invalid

2017-01-30 Thread Daniel Roseman
This is bad advice. You should almost never need to override the get or post methods on a class based view; there are always more specific methods to use. -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group an

How to set a custom field in a Django session model?

2017-01-30 Thread Utku Gültopu
I have extended the session in Django per [this][1]. In short, I have added a field named `account_id` to hold the user id of the user which the session belongs to. Everything works fine, except the custom field `account_id` I have added is not being set on login. To do so: from django.con

Re: No module named NullHandler!!

2017-01-30 Thread Larry Martell
On Mon, Jan 30, 2017 at 2:31 PM, Adriana Lucía Céspedes wrote: > I really hope you could help me with this error: > > > Unable to configure handler 'null': Cannot resolve > 'django.utils.log.NullHandler': No module named NullHandler > > I am using Django 1.10 on Ubuntu 14.04 with python 2.7 > > >

No module named NullHandler!!

2017-01-30 Thread Adriana Lucía Céspedes
I really hope you could help me with this error: *Unable to configure handler 'null': Cannot resolve 'django.utils.log.NullHandler': No module named NullHandler* I am using Django 1.10 on Ubuntu 14.04 with python 2.7 Even though I have been looking up for information to solve the error; I

primary key, foreign key combination

2017-01-30 Thread dsfqce cwfe
When I try to update_or_create model object with primary key that is also a foreign key in some other model I get DoesNotExist error and then IntegrityError duplicate entry error. My way around this is to try get the object and then update it without the primary key or create it (with primary k

Re: Mocking date and time in LiveServerTestCase?

2017-01-30 Thread Carsten Fuchs
Hi Adam, Am 25.01.2017 um 21:01 schrieb Adam Stein: When I need to set the date to a known day for tests, I use forbiddenfruit (https://github.com/clarete/forbiddenfruit). Thanks for mentioning this, I didn't know it before! However, I have not yet tried it, because I had hoped that there was

Re: form_invalid

2017-01-30 Thread Roberto Russi
Is just what i pictured. But when form_invalid is called? Il giorno lunedì 30 gennaio 2017 02:35:54 UTC+1, Melvyn Sopacua ha scritto: > > On Sunday 29 January 2017 04:10:20 Roberto Russi wrote: > > > I need get data from a form when submit is clicked even if data are > > > invalid, inconplete or e

How to make django sqlite database connection readonly.

2017-01-30 Thread Chetan Gupta
Hi, I am new to django. My requirement is django application i have 3 db connection. I want 2 db connection is readonly. Please let me know how to do that. Regards Chetan -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from thi

Channel backend - Google Datastore/BigTable

2017-01-30 Thread Sgiath
Hello, would it be possible to run Channel Backend against Google Cloud Datastore /BigTable ? And if yes does anybody started writing the Channel Layer for it similar as asgi_redis ?

Re: Unclear Debug Message (Bug?) When Invalid Url in Extended Template

2017-01-30 Thread Tim Graham
Thanks. Please create a ticket with details: https://code.djangoproject.com/newticket On Saturday, January 28, 2017 at 11:10:40 PM UTC-5, Connor Boyle wrote: > > Django 1.8 produces a reasonable error message (highlighting the > problematic line in the relevant template file–though the formatting

Re: Installing Django

2017-01-30 Thread Danny Jr Chu
Ok, thanks. On Monday, January 30, 2017 at 8:39:29 PM UTC+8, Antonis Christofides wrote: > > If you want to build something like Upwork, then Django is definitely a > good option, but of course, as you have guessed, you have really much > learning to do. > > Regards, > > Antonis > > Antonis Chri

Re: Installing Django

2017-01-30 Thread Antonis Christofides
If you want to build something like Upwork, then Django is definitely a good option, but of course, as you have guessed, you have really much learning to do. Regards, Antonis Antonis Christofides http://djangodeployment.com On 01/30/2017 02:27 PM, Danny Jr Chu wrote: > I will consider your pro

Re: Django upgradation 1.7. to 1.9.12

2017-01-30 Thread Antonis Christofides
The release notes say django.conf.urls.patterns was removed in 1.10, so in 1.9.12 it should still be there. You can check the Django version with "import django; django.VERSION". You can run "manage.py shell" and check the version there, but it's possible Gunicorn/mod_wsgi/uWSGI is running a diffe

Re: Installing Django

2017-01-30 Thread Danny Jr Chu
I will consider your professional advise Antonis. However, what I would like to build is a (1st) freelancer website (upwork or like), I know that there are hundreds of these right now, but with a subtle twist and to offer both client and contractor something more, it may be feasible. (2nd) I fai

Django upgradation 1.7. to 1.9.12

2017-01-30 Thread Soham Navadiya
I upgraded django 1.7 to 1.9.12. I have seen in django >1.9 doc that they removed from django.conf.urls import patterns. Still after upgrading the django It is not showing any error on, urlpatterns = patterns() So how can I check that django upgradations was successfully done or not. -- You r

Re: Separator between forms in formset factory

2017-01-30 Thread Jeroen van Oorschot
Thanks for the tip, this works fine indeed. I expected it to be some option on the formset, but this is ok as well. On Saturday, January 28, 2017 at 8:55:59 PM UTC+1, Grzegorz Tężycki wrote: > > How you render your formset. > You can add separator in your html template: > > example: > {% for form

Re: Installing Django

2017-01-30 Thread Antonis Christofides
If you want to just make a web site, Django is the wrong thing for you. Django is not for building web sites, it's for building web applications. You might instead want to look at Mezzanine or Django-CMS or Wagtail (these are all software for building web sites and they're based on Django), or, if

Re: Installing Django

2017-01-30 Thread Danny Jr Chu
Hi Antonis, No I have not yet tried wordpress, but the answer is budget wise. I would think that after these exercises, I am just going to pay (I think) the domain and hosting only. Regards, Danny On Monday, January 30, 2017 at 6:16:27 PM UTC+8, Antonis Christofides wrote: > > I wish I could

Re: Installing Django

2017-01-30 Thread Danny Jr Chu
Hello Jani, you are an angel :) I have un-installed it and re-install to the right folder.. thanks a lot. On Monday, January 30, 2017 at 4:34:27 PM UTC+8, Jani Tiainen wrote: > > Hi, > > First you seem to be installing Django to Windows, it adds certain > complexity all together, it's not impo

Re: Installing Django

2017-01-30 Thread Antonis Christofides
> I wish I could build a website out of my imaginary Hello, depending on what you mean with "build a website", you may be looking at the wrong thing. Have you tried, for example, to build a web site at wordpress.com? If yes, why is this not sufficient for you and you want to learn Django? Regard

Re: Installing Django

2017-01-30 Thread Jani Tiainen
Hi, First you seem to be installing Django to Windows, it adds certain complexity all together, it's not impossible though. By given paths for some strange reason easy_install seems to thing that you have installed your Python to "C:\program files (x86)\" directory (not subdirectory there o