are parameters compulsary in an url pattern?

2015-10-06 Thread kk
Dear all, I just wish to know if I must have all the parameters from my form as a part of the url pattern? I need to use only the request so was wondering if that is the case? I have seen tutorials and all of them come with url parameters I don't need a url like /articles/2013/03 etc. I am

Django 1.8: subclass AbstractUser, App 'auth' doesn't have a 'myuser' model.

2015-10-06 Thread 술욱
Hello, I'm trying to upgrade an app from Django 1.6 to 1.8 but I can't solve a problem apparently related to a custom user model. The project has an 'auth' app with its corresponding models.py and apps.py. The snippet pasted bellow reproduces the problem which I don't know how to fix. Many TIA,

Re: Are jobs postings allowed on this forum?

2015-10-06 Thread Russell Keith-Magee
Hi John, As long as they're on topic (i.e, for Django jobs), you're clear about the geographical constraints on the job (e.g., only looking for people in city X, relocation budget available; telecommuting welcome; US citizen required), the job advertisement doesn't trigger any Community Code of

Re: exception "myapp.models.DoesNotExist" instead of "MyModel.DoesNotExist"

2015-10-06 Thread Tim Graham
I can reproduce an exception appearing as "app.models.DoesNotExist" in a traceback, but "except Model.DoesNotExist" works for me, so I can't explain that. By the way, you should probably use QuerySet.get_or_create() instead of try/except as it will be more resilient to race conditions.

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-06 Thread jordi . gutierrez . hermoso
I want the old behaviour of running all tests in INSTALLED_APPS by default Actually, I don't care too much if this is accomplished by grabbing the old django.test.simple.DjangoTestSuiteRunner from git history or by any other means. On Tuesday, October 6, 2015 at 4:24:00 PM UTC-4, Gergely

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-06 Thread Gergely Polonkai
Hello, do you mean the integrated unittest module, or the Django test runners? However, both needs to be fetched from old history, and I daresay it won't be an easy fetch. 1.6 code will more than likely be incompatible with 1.8, so even if you backmerge it, you will have to do a lot of patching.

Re: How to solve this problem: Custom User with ForeinKey to another model. (model does not exist)

2015-10-06 Thread Uzhare Farooq
If I understand your question correctly, the below given code should solve your issue. yourFKField = models.ForeignKey('YourModel') Notice the quotes around YourModel. On Oct 6, 2015 10:41 PM, "Fellipe Henrique" wrote: > > My problem is NOT the order... but I need to create

Re: How to run all tests in INSTALLED_APPS with the new test runner 1.6?

2015-10-06 Thread jordi . gutierrez . hermoso
Hey, sorry to respond to such an old thread, but now that 1.8 completely removed the old test runner, I am wondering if there's any way to get it back. I don't want to explain why I want it back. Please don't tell me I don't want it. So, starting from the axiom that I want it back, how should

smtpconnecterror (-1, ' ') on smtp

2015-10-06 Thread Arka Ghosh
I am trying to send an email using Django send_email, smtp and gmail. However, the code returns SMTPConnectError (-1, ' ') My settings.py file: ALLOWED_HOSTS = [] DEFAULT_FROM_EMAIL = 'mygmailid' SERVER_EMAIL = 'mygmailid' EMAIL_USE_TLS = True EMAIL_BACKEND =

Are jobs postings allowed on this forum?

2015-10-06 Thread John Shields
Hi, does this forum allow job postings? -- 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

Re: Load a static file with a variable name

2015-10-06 Thread François Schiettecatte
The '+' is an error, the line look more like this: On Tue, Oct 6, 2015 at 2:33 PM, I. Dié wrote: > I tried in your way to concatenate, I don't get any exception, but the > image image does'nt want to display. The plage only throw the "alt" value. > Even for this line

Re: Load a static file with a variable name

2015-10-06 Thread I . Dié
I tried in your way to concatenate, I don't get any exception, but the image image does'nt want to display. The plage only throw the "alt" value. Even for this line of code it's thing. Le mardi 6 octobre 2015 19:51:04 UTC+2, Shawn Milochik a écrit : > > Try this: > > pet.name }} /> > >

Re: Load a static file with a variable name

2015-10-06 Thread Shawn Milochik
Try this: You're embedding {{pet_name}} in a string. If this was a regular Python statement, it would be like writing "Hello, {0}" and not having a format() at the end. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Load a static file with a variable name

2015-10-06 Thread I . Dié
Hi everybody, I want to load a image with a variable name in detail.html like this: {% load staticfiles %} the image won't load. But when I try this way, it's work perfectly: {% load staticfiles %} Here is my question How to load a static file with a variable name? Ps: pet.name value is

Re: How to solve this problem: Custom User with ForeinKey to another model. (model does not exist)

2015-10-06 Thread Fellipe Henrique
My problem is NOT the order... but I need to create "core app" first.. after that, install "account app".. because my model in "account app" has a FK to "core app" T.·.F.·.A.·. S+F *Fellipe Henrique P. Soares* e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge'

Re: Formset questions: data vs. initial values

2015-10-06 Thread Carsten Fuchs
Anyone please? Best regards, Carsten Am 07.09.2015 um 21:18 schrieb Carsten Fuchs: Dear Django group, after having read all of the Django docs that I could find, I still have two questions about the proper use of formsets. Summary first: 1. What is a good way to make sure the data

exception "myapp.models.DoesNotExist" instead of "MyModel.DoesNotExist"

2015-10-06 Thread gerard
Hello all, i use Django 1.8.4 with sqlite. I added a simple model into "catalogue" app: class Zoom(models.Model): name = models.CharField(max_length=200) def __str__(self): name = "%s" % self.name return name and dit manage.py makemigrations/migrate. I have a code like

Re: django.test: @override_settings(LANGUAGE_CODE = 'xx') does not affect the default language in a test

2015-10-06 Thread 'Tom Evans' via Django users
On Tue, Oct 6, 2015 at 3:11 PM, Yunshi Tan wrote: > Let's say we have a default language code in settings.py > >LANGUAGE_CODE = 'en' > > Then we have > > >> from django.utils import translation > >> assert translation.get_language() == 'en' > > We are good by

Re: Django admin suitable for external users?

2015-10-06 Thread tahir
Derek, my distinction would be based product ownership ... potentially both would or could pay. So in other words "clients" would own the product as their own, versus "customers" whom are paying for service without ownership and control of product development. I have seen Django admin opened

Re: How to solve this problem: Custom User with ForeinKey to another model. (model does not exist)

2015-10-06 Thread Erol Merdanović
If the order is the problem, then you can define dependencies https://docs.djangoproject.com/en/1.8/howto/writing-migrations/#controlling-the-order-of-migrations On Tuesday, 6 October 2015 16:34:04 UTC+2, Fellipe Henrique wrote: > > Just to update... these error occurs when I use PostgreSQL,

Re: How to solve this problem: Custom User with ForeinKey to another model. (model does not exist)

2015-10-06 Thread Fellipe Henrique
Just to update... these error occurs when I use PostgreSQL, using SQLite works perfect... T.·.F.·.A.·. S+F *Fellipe Henrique P. Soares* e-mail: > echo "lkrrovknFmsgor4ius" | perl -pe \ 's/(.)/chr(ord($1)-2*3)/ge' *Blog: http://fhbash.wordpress.com/ * *GitHub:

Re: Using Django and R in a production environment?

2015-10-06 Thread Derek
We have up on R altogether and switched to using pandas and related Python modules. Our conclusion was that R is great for the desktop but not well suited to a dynamic web environment (happy to be proved wrong, of course). On Saturday, 3 October 2015 17:55:38 UTC+2, Chanat Praserthdam wrote: >

django.test: @override_settings(LANGUAGE_CODE = 'xx') does not affect the default language in a test

2015-10-06 Thread Yunshi Tan
Let's say we have a default language code in settings.py LANGUAGE_CODE = 'en' Then we have >> from django.utils import translation >> assert translation.get_language() == 'en' We are good by now. Then in a test, I would like to override the default language. Let's say I have

Re: Django admin suitable for external users?

2015-10-06 Thread Derek
What is the difference between a customer and client - I assume the former is paying? On Monday, 5 October 2015 22:12:14 UTC+2, ta...@pingmd.com wrote: > > Has anyone opened Django admin to customers, not just clients? If so, what > warranted such decision as appose to only exposing partial

Re: TemplateDoesNotExist at / Error WIth Django 1.8.4 (URGENT)

2015-10-06 Thread ABHIJIT PATKAR
Keep the template folder into your app folder and try it again. --Abhijit Patkar On Tue, Oct 6, 2015 at 10:27 AM, Lachlan Musicman wrote: > do you have a template in a directory called templates? That directory > should be at the same level as manage.py > -- > The most

Re: TemplateDoesNotExist at / Error WIth Django 1.8.4 (URGENT)

2015-10-06 Thread Nelson Varela
Did you notice the name of your template? It says login.html.html On Tuesday, October 6, 2015 at 12:23:45 PM UTC+2, dannette opot wrote: > > I get the above error when I try to access the login.html. > > Attached are my application files. > -- You received this message because you are

How to solve this problem: Custom User with ForeinKey to another model. (model does not exist)

2015-10-06 Thread Fellipe Henrique
Hello, I have my custom user model in my "account" app, and I have in my "core" app.. Inside my "core app" I have my City Model... But I need each user has to be set the user City... My problem: when I apply the migration, I give the error: "city model" does not exist. even I put the "core

Re: TemplateDoesNotExist at / Error WIth Django 1.8.4 (URGENT)

2015-10-06 Thread Lachlan Musicman
do you have a template in a directory called templates? That directory should be at the same level as manage.py -- The most dangerous phrase in the language is, "We've always done it this way." - Grace Hopper On 6 October 2015 at 15:54, dannette opot wrote: > I get the

Re: Python Multiprocessing With Django

2015-10-06 Thread Subha Bera
My program trigger some regression file in a remote host for that I used paramiko module. But I want to trigger same kinda file to different machines parallel-ly. I am using django so that people can use this as web app. I am using url-view-template model. How can use I multi threading in the