Changes to Model does not migrate to sqlite with Django 1.7?

2014-12-07 Thread Tobias Dacoir
Hi, I'm having trouble with changes to my Models. I just added a couple of new fields to my existing models but when I run manage makemigrations it says: No changes detected. When I try to log in to the admin panel it gives an operational error and says: No such column (because I added a

Re: Testing reusable application: compatible way

2014-12-07 Thread Carl Meyer
On 12/07/2014 12:59 PM, Matwey V. Kornilov wrote: > The following code works perfect for me, why the code in the > documentations so sophisticated? > > def runtests(): > os.environ.setdefault("DJANGO_SETTINGS_MODULE", > "tests.test_settings") > > try: > from

Re: Testing reusable application: compatible way

2014-12-07 Thread Carl Meyer
On 12/07/2014 02:28 PM, Carl Meyer wrote: > On 12/07/2014 08:40 AM, Matwey V. Kornilov wrote: >> I've followed this documentation: >> https://docs.djangoproject.com/en/1.7/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications >> and found that it works only for Django

Re: Testing reusable application: compatible way

2014-12-07 Thread Carl Meyer
Hi Matwey, On 12/07/2014 08:40 AM, Matwey V. Kornilov wrote: > I've followed this documentation: > https://docs.djangoproject.com/en/1.7/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications > and found that it works only for Django 1.7, whereas I would like to >

Re: Testing reusable application: compatible way

2014-12-07 Thread Matwey V. Kornilov
The following code works perfect for me, why the code in the documentations so sophisticated? def runtests(): os.environ.setdefault("DJANGO_SETTINGS_MODULE", "tests.test_settings") try: from django import setup setup() except

How to hide the 'empty entry' value in forms relating as ForeignKey?

2014-12-07 Thread inoyon artlover KLANGRAUSCH
Hi there, I got a form: class Answers(models.ModelForm): psyq11 = forms.ModelChoiceField( queryset=PsychologicQuestion11.objects.all(), widget=forms.RadioSelect) psyq12 = forms.ModelChoiceField( queryset=PsychologicQuestion12.objects.all(),

Testing reusable application: compatible way

2014-12-07 Thread Matwey V. Kornilov
Hi, I've followed this documentation: https://docs.djangoproject.com/en/1.7/topics/testing/advanced/#using-the-django-test-runner-to-test-reusable-applications and found that it works only for Django 1.7, whereas I would like to have a code snipped working also for 1.5, 1.6. An issue with the

Re: Django development server crash on syntactic or indent error after check

2014-12-07 Thread Mario De Frutos Dieguez
Thank you very much Collin, i will take a look knowing that its probably a bug :) El sábado, 6 de diciembre de 2014 18:33:34 UTC+1, Collin Anderson escribió: > > It happens if there's a SyntaxError in a models.py file. > > On Saturday, December 6, 2014 12:32:17 PM UTC-5, Collin Anderson wrote:

Re: POSTing data to a django view from a stand alone script with CSRF

2014-12-07 Thread Torsten Bronger
Hallöchen! Larry Martell writes: > I have a django view that normally receives POSTed data from a web > page. That all works fine. But now we also want to call that view from > a python script. That is failing with a 403 because of a CSRF > mismatch. I can disable CSRF on my view and then it

Re: I cannot connect with my database remote server mysql django

2014-12-07 Thread rush
Just put correct password into settings. That will fix the error. -- wbr,rush.   07.12.2014, 17:11, "tuktuk" :I am running my django Application in local mode, and my database server is in a remote server with cpanel. Configurations in settings.py are:DATABASES = {

I cannot connect with my database remote server mysql django

2014-12-07 Thread tuktuk
I am running my django Application in local mode, and my database server is in a remote server with cpanel. Configurations in settings.py are: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'tim_farmaapp', 'USER':

Re: Connect django project with sharepoint 2013

2014-12-07 Thread Mario Gudelj
Well your python code is trying access that url so the url must work On 07/12/2014 4:47 pm, "Hossein Rashnoo" wrote: > I can access to http://portal:8080/ in my browser when i set our office > proxy and port. And my linux server that i run django on it, is local. Do i > need

Open a url with user and password

2014-12-07 Thread Hossein Rashnoo
I want to create a web-service for connection to sharepoint that do something like create a list and ... So at first step because we use sharepoint with local ip i want to check if i can connect to our sharepoint portal via my server or not. So i looking for something like :