On Wed, Mar 11, 2015 at 1:24 AM, Henry Versemann wrote:
> so its valid python code to write the expression
>
> innerDict['+newinnrkey+']
>
> without enclosing the parts outside of the plus-signs surrounding the
> "newinnrkey" variable within quotes or double quotes?
> I'm not sure I've ever heard
On Tue, Mar 10, 2015 at 5:38 PM, Marc Aymerich wrote:
>
>
> On Tue, Mar 10, 2015 at 5:15 PM, Marc Aymerich
> wrote:
>
>>
>>
>> On Tue, Mar 10, 2015 at 5:12 PM, Marc Aymerich
>> wrote:
>>
>>> Hi,
>>> I have a middleware that performs some operations at the end of each
>>> request.
>>>
>>> What I
Heh, lol, Ok tax Collin I will do that. I was thinking that i need to
delete mine migration from the terminal, but I will try that, tnx
10.03.2015. 18.01, "Collin Anderson" је написао/ла:
> Hi Petar,
>
> I'm actually not sure why you want to call sqlflush. If you're trying to
> clear out the data
El 10/03/15 13:11, dk escribió:
I been trying to find information on how to make a button to run a
python script in the back.
I do have a table with some buttons, and I want to click in one, and
behind doors, will run a python script.
since I don't know to much javascript or flask, or php I d
Hello,
By taking a quick glance on I'm afraid that a GFK subclass is your best
bet. I was experimenting with a Doctrine DB (based on your description my
guess was that your old ORM may be that). A little bit of change to GFK
made the query working, although I haven't solved the insert/update probl
Hi all,
I would like to be able to track the number of visitors on our website. We
previously had django-tracking installed and a munin node that tracked the
information. Unfortunately we weren't able to continue using it because it
broke our website somehow (I don't remember how).
Does anyone ha
Hi,
Sorry to ask such a silly question I just cloned a Django app via git
and I want to get the contents of the app code directory into my Django
project.
The Readme.md says the following but I don't get it :-(
Folder Structure
You will need to get the contents of the src/idea directory i
Hi,
According to
https://docs.djangoproject.com/en/1.7/internals/release-process/#supported-versions,
it appears that when Django 1.8 is released, Django 1.6 will no longer
receive security updates. I wanted to verify that this is true, and ask
whether there's a possibility of an extension on
On Sun, Mar 8, 2015 at 5:21 AM, Dheerendra Rathor
wrote:
> I've a django project and I've few models like ChatRoom and Chat etc
>
> I'm accessing the ChatRooms from commandline using ipython as follow
> In [1]: import os
>
> In [2]: os.environ['DJANGO_SETTINGS_MODULE'] = 'chat_project.settings'
>
I have attached files (please pardon the code file; they may have a lot of
comments or commented out code in them) to this response so you can look at
the data that I'm seeing as well as the actual code which is using some of
the data shown (the file *json_data_list_031115.txt* is gotten in a
p
On 11/03/15 14:22, Neto wrote:
Hi Simon,
pip install django-formtools doesn't work.
Could not find any downloads that satisfy the requirement django-formtools
It looks like it hasn't been django-formtools hasn't been released on
PyPi yet. There's an issue [1] on the github repository to mak
At least when using Postgres that query makes a LEFT OUTER JOIN so it
shouldn't discard Shops just because they don't have a state or city.
So your query seems to be OK
are you sure your search text is fine? the orm will not automatically strip
the search_text into a list of keywords or things li
Hi Henry,
On 03/10/2015 07:37 PM, Henry Versemann wrote:
> So how does an expression like you suggested above (
> innerDict['+newinnrkey+'] = newinnrval ) work then?
> It seems like it wouldn't work without enclosing the expression
> with quotes or double-quotes, and even then it seems like it wou
After re-reading I just got what I should do... Thanks again !
On Wednesday, March 11, 2015 at 10:23:49 AM UTC-6, jaisol wrote:
>
> Thanks again for your time on this.
>
> Even the setup.py comes with the downloaded app I didn't execute it
> because it wasn't part of the Install steps noted at th
Heya,
As fundraising for DjangoGirls we're making available our special
djangogirls ponies (like t-shirts but better). They're pretty exclusive but
you can now get yourself one:
http://ponies.elena.net.au/
Everyone with DjangoGirls at the upcoming events and conferences will be
wearing one of th
Thank you for your reply Filipe
The question behind was:
How to implement a cross domain communication between a phonegap App and a
django web project
You're right I forgot the django site for the server-side headers in my
mind.
I'll give it a try with the plugin and test how far i come with
I dont know why but i'm facing a strange problem.. My templates just
wouldn't load or show. can you please help me out. I'm using Django version
1.7
It shows the following warning as well in the cmd : C:\Users\Om
Computers\PyDisco\venv\ddisco\signups\forms.py:5: RemovedInDjango18W
arning: Cr
I'm trying out Django 1.8b2, and am getting close to getting our main
project's test suite passing. However I've run into this behaviour and I'm
just curious whether anyone else has experienced it or has any thoughts.
TransactionManagementError: An error occurred in the current transaction.
>
You have two 'home' functions in views.py.
You have an indent on the first line of the urls.py (could be the paste)
You did not provide the forms.py
Johnf
On 03/12/2015 01:31 AM, sourav mohanty wrote:
I dont know why but i'm facing a strange problem.. My templates just
wouldn't load or show. c
Hi Peter,
On Thursday, March 12, 2015 at 11:26:21 AM UTC+1, Peter Schmidt wrote:
>
> I think it's related to this documented change:
>
> https://docs.djangoproject.com/en/dev/releases/1.8/#related-object-operations-are-run-in-a-transaction
>
Exactly
> We can fix it by catching the known instan
Try this:
mysite# tree
.
├── db.sqlite3
├── manage.py
├── mysite
│ ├── __init__.py
│ ├── settings.py
│ ├── urls.py
│ └── wsgi.py
├── polls
├── admin.py
├── __init__.py
├── migrations
│ ├── 0001_initial.py
│ └── __init__.py
├── models.py
├── tests.py
You also have two different URL's named 'home', which will lead to a bad
time. Make sure that those are unique.
>From what I can tell, none of your views render/reference 'signup.html', so
I would never expect that template to be rendered.
Configure a fields attribute on your form to get rid of t
Hi Adam,
It's pretty inefficient, but you can do:
MyModel.objects.filter(pk__in=[obj.pk for obj in MyModel.objects.all() if
user.has_perm('read', obj)])
But, actually, I think you want to use get_objects_for_user():
http://django-guardian.readthedocs.org/en/v1.2/userguide/check.html#get-objects-
Hi,
Interesting. If you switch back to previous version of django you don't
have that problem?
Is it a slow query?
Are you using MySQL or MSSQL?
Collin
On Tuesday, March 10, 2015 at 8:55:44 PM UTC-4, Weifeng Pan wrote:
>
> Hi,
>
>
> I upgrade to latest version of django. Every time I navigat
Hi,
Do you have the correct file path set to your sqlite3 database? Does it
have proper permissions?
I found a similar issue here:
https://www.pythonanywhere.com/forums/topic/1814/
Collin
On Wednesday, March 11, 2015 at 2:04:45 AM UTC-4, Petar Pilipovic wrote:
>
> Hey Collin,
> I have done wha
Hi,
I'd personally recommend re-using the same model and having a "type" field
for whether it's corporate or private.
Otherwise, you'd need to do something like:
class Corporate(models.Model):
user = models.OneToOneField(User)
class Private(models.Model):
user = models.OneToOneField(Us
Hi,
You could try using freezegun to run the test as if it were a certain time
of day.
https://pypi.python.org/pypi/freezegun
Or, you could say something like:
if 9 <= datetime.datetime.now().hour < 17:
self.assertContains(response, "It's working time!")
else:
self.assertContains(respon
Hi,
Maybe g() should return the id instead of the instance? That does seem a
bit odd that it wouldn't accept an A() instance as the default.
Collin
On Wednesday, March 11, 2015 at 7:43:35 AM UTC-4, Krzysztof Ciebiera wrote:
>
> I have created a model A:
>
> def g():
> return A.objects.get(p
i have changed the views.py:
from django.shortcuts import render, render_to_response, RequestContext
# from .forms import SignUpForm
# Create your views here.
from django.template import Context, Template
def home(request):
# form = SignUpForm(request.POST or None)
# if form.is_valid()
i have revised the views.py :
from django.shortcuts import render, render_to_response, RequestContext
# from .forms import SignUpForm
# Create your views here.
from django.template import Context, Template
def home(request):
# form = SignUpForm(request.POST or None)
# if form.is_valid(
I thank you for your reply and time.. But please help me..
On Thursday, March 12, 2015 at 6:50:23 PM UTC+5:30, John Fabiani wrote:
>
> You have two 'home' functions in views.py.
> You have an indent on the first line of the urls.py (could be the paste)
> You did not provide the forms.py
>
> Johnf
from 'My templates just wouldn't load or show' , i mean that my base.html
loads perfectly but signup.html doesn't show up.
On Friday, March 13, 2015 at 12:20:26 AM UTC+5:30, sourav mohanty wrote:
>
> i have revised the views.py :
>
> from django.shortcuts import render, render_to_response, Reque
OK the view.py functions are the way Django responds to a browser request.
IOW the browser asks for a page to display and Django checks the URL (in
the urls.py). In the urls.py you have to have an entry something like
url(r'signup/$', 'signup.views.home', name ='signup') and then Django
excute
Thanks Florian.
On Friday, March 13, 2015 at 2:34:46 AM UTC+11, Florian Apolloner wrote:
>
> Hi Peter,
>
> On Thursday, March 12, 2015 at 11:26:21 AM UTC+1, Peter Schmidt wrote:
>>
>> I think it's related to this documented change:
>>
>> https://docs.djangoproject.com/en/dev/releases/1.8/#related
If you deleted your db and created again and the issue persist then maybe
the problem is in your apps.
Try removing db, comment 3th party apps in settings and run migrate with
only django core apps, put again 3th party apps and run migrate.
El jueves, 12 de marzo de 2015, Collin Anderson
escribi
What is the best way to avoid recursion when using post_save?
@receiver(post_save, sender=Person)
def do(sender, instance, *args, **kwargs):
instance.ok = True
instance.save()
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscri
36 matches
Mail list logo