Django 1.8 ImportError: No module named formtools

2015-03-10 Thread Neto
I'm trying to use form wizard but when I put 'django.contrib.formtools', in INSTALLED_APPS appear on my terminal 'ImportError: No module named formtools' -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Using the eval() command

2015-03-10 Thread Henry Versemann
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 would only become some kind of string instead of a statement

Re: Using the eval() command

2015-03-10 Thread Henry Versemann
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 or seen such python code before anywhere. Can you explain or point

Re: Generic Relation in Legacy Database?

2015-03-10 Thread ringemup
Thanks, Gergely — it’s actually Eloquent, which handles GFKs a little more similarly to Django than Doctrine does, AFAICT. Would you mind sharing your GFK changes-in-progress? Maybe we could collaborate on a broader solution. On Mar 10, 2015, at 3:30 PM, Gergely Polonkai

[django 1.7.6] system error: 10054 An existing connection was forcibly closed by the remote host

2015-03-10 Thread Weifeng Pan
Hi, I upgrade to latest version of django. Every time I navigate to django admin site "User" page. I got this error: File "C:\MyProjects\WuWuKe\venv\lib\site-packages\django\core\handlers\base.py", line 111, in get_response response = wrapped_callback(request, *callback_args,

Re: How to track number of visitors on django site

2015-03-10 Thread Nathan Clayton
On 3/10/2015 2:16 PM, Andreas Kuhne wrote: > Hi Vijay, > > Thanks for the suggestion, and we are of course using GA (I should have > mentioned that). The problem is our CEO doesn't like the way GA compiles > the information and he also feels that it's too slow, he can't get the > views that he

Re: GSoKites Virtual Classroom

2015-03-10 Thread Russell Keith-Magee
Hi Barclay, Welcome to the community! If you want to know anything about the Django Project's involvement in Google Summer of Code, our wiki page is here: https://code.djangoproject.com/wiki/SummerOfCode2015 If you've got any more questions, let us know. Yours, Russ Magee %-) On Tue, Mar 10,

Re: How to get/assign the contents of the app code directory into my Django project

2015-03-10 Thread jaisol
Thanks for your quick response. Ok. I'm using my system python with a system-wide installed django. I ran git clone: git clone https://github.com/provider/app.git and it created the folder structure of the django app I think. what I don't get is how to complete your advice ("or simply inject

Re: Django 1.6's lifespan for security updates?

2015-03-10 Thread Avraham Serour
each django deployed on the machines with python 2.6 should already be on the project virtualenv I suggest to compile python 2.7 yourself and create the virtualenvs based on the compiled python, no need to replace it system-wide On Wed, Mar 11, 2015 at 12:00 AM, Carl Meyer

Re: How to track number of visitors on django site

2015-03-10 Thread luis zarate
I know django-statistics ( https://github.com/attuch/django-statistics ) but I have never used 2015-03-10 15:16 GMT-06:00 Andreas Kuhne : > Hi Vijay, > > Thanks for the suggestion, and we are of course using GA (I should have > mentioned that). The problem is our CEO

Re: How to get/assign the contents of the app code directory into my Django project

2015-03-10 Thread Gergely Polonkai
Hello, this pretty much depends on your environment. I, personally, use virtualenv and pip, so most likely will install such an external app like this: pip install git://my.favourite.provider/awesome/app.git If you use your system python, with a system-wide installed django, then you may either

Re: Django 1.6's lifespan for security updates?

2015-03-10 Thread Carl Meyer
Hi Christian, On 03/10/2015 01:44 PM, Christian Hammond wrote: > 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

Re: First time user, can't start project!

2015-03-10 Thread Andrew Farrell
What platform are you on? Does it print out anything? What does running the command `dir` show before and after running `django-admin.py startproject mysite` ? On Tue, Mar 10, 2015 at 12:09 PM, wrote: > Hi! > > I ran the command to get my version and it worked. However

Re: Using the eval() command

2015-03-10 Thread Carl Meyer
Hi Henry, On 03/10/2015 03:25 PM, Henry Versemann wrote: > I have a new dictionary that I want to build, using data from another > dictionary. I have a view which is receiving a single key/value pair > from the original dictionary. Then in the view I've defined the new > dictionary like this: >

First time user, can't start project!

2015-03-10 Thread ephoneemail
Hi! I ran the command to get my version and it worked. However when I run: django-admin.py startproject mysite It does not create the mysite directory... any help? Thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe

Filtering a QuerySet by the result of user.has_perm

2015-03-10 Thread Adam Gamble
Hi all, I'm stuck on how to restructure the following in order to return a QuerySet instead of a List (needed for Lazy evaluation): filter(lambda o: user.has_perm('read', o), MyModel.objects.all()) Using django-guardian , for object-level permissions.

Re: Using the eval() command

2015-03-10 Thread Bill Freeman
eval() operates on an expression, not a statement. Assignment makes it a statement. Why wouldn't you just say: innerDict['+newinnrkey+'] = newinnrval On Tue, Mar 10, 2015 at 5:25 PM, Henry Versemann wrote: > I have a new dictionary that I want to build, using data

Using the eval() command

2015-03-10 Thread Henry Versemann
I have a new dictionary that I want to build, using data from another dictionary. I have a view which is receiving a single key/value pair from the original dictionary. Then in the view I've defined the new dictionary like this: innerDict = {} Now I want to make this as dynamic as possible

Re: How to track number of visitors on django site

2015-03-10 Thread Andreas Kuhne
Hi Vijay, Thanks for the suggestion, and we are of course using GA (I should have mentioned that). The problem is our CEO doesn't like the way GA compiles the information and he also feels that it's too slow, he can't get the views that he would like. So we would like to add this information

Re: How to track number of visitors on django site

2015-03-10 Thread Vijay Khemlani
Hmmm... what about the classic Google Analytics? On Tue, Mar 10, 2015 at 5:04 PM, Andreas Kuhne wrote: > 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

Re: fake button run a view and come back to the same page.

2015-03-10 Thread felix
El 10/03/15 15:46, dk escribió: UHH redirect sounds easy.. yami yami. Felix how does the ajax works? I am assuming is a library of javascripts? and ajax can lunch the python code? ajax = Asynchronous Javascript And XML It means you can update part of a page without reloading

Re: fake button run a view and come back to the same page.

2015-03-10 Thread dk
UHH redirect sounds easy.. yami yami. Felix how does the ajax works? I am assuming is a library of javascripts? and ajax can lunch the python code? On Tuesday, March 10, 2015 at 1:48:56 PM UTC-5, Daniel Roseman wrote: > On Tuesday, 10 March 2015 17:11:16 UTC, dk wrote: >> >> I

Re: How to make responsinator.com working with Django?

2015-03-10 Thread James Schneider
Does the site load when accessing it from your own browser (or better yet, from a different machine connected to the Internet)? Are you pasting in an http://127.0.0.1:8000 address? If so, that won't work with tools like responsinator.com. Your site will need to be publicly accessible on the

Re: fake button run a view and come back to the same page.

2015-03-10 Thread Daniel Roseman
On Tuesday, 10 March 2015 17:11:16 UTC, dk wrote: > > 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

Re: Django server serving cached template pages

2015-03-10 Thread Collin Anderson
Hi, Yes, apparently many people get tripped up on this step. Is this django1.7? create a blank "blank_site.html". <- I assume you mean create a blank base_site.html? I assume this is with manage.py runserver? (If it's apache/uwsgi/gunicorn, you need to reload the program when changing the

Re: my mysite/templates/admin/base_site.html is ignored (tutorial unclear?)

2015-03-10 Thread Collin Anderson
Hi, To be clear, you should have this setting: TEMPLATE_DIRS = [os.path.join(BASE_DIR, 'templates')] and in your mysite/templates/admin/base_site.html you should have something like: {% block branding %} Polls Administration {% endblock %} Does that all look right? Thanks, Collin On

fake button run a view and come back to the same page.

2015-03-10 Thread dk
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 decided to make a link (later on

Re: Accessing Django models using DJANGO_SETTINGS_MODULE

2015-03-10 Thread Collin Anderson
Hi, Hmm... maybe try ChatRoom.objects.all().all() ? :) If you run this, you can see if it's actually running sql or not: import logging; logging.basicConfig(level=logging.DEBUG) Are you sure you're using the same database? :) Collin On Sunday, March 8, 2015 at 8:41:30 AM UTC-4, Dheerendra

Re: Existing database - new project

2015-03-10 Thread Collin Anderson
Hi, inspectdb makes step #1 much easier. If you're not planning on removing some of the columns or restructuring things, I'd recommend #1. Collin On Saturday, March 7, 2015 at 9:31:24 AM UTC-5, Derek wrote: > > I have taken route 1 before; its a bit more messy because you may have to >

Re: Django OperationalError

2015-03-10 Thread Collin Anderson
Hi Petar, I'm actually not sure why you want to call sqlflush. If you're trying to clear out the database, you may need to delete the migrations table manually, but it just might be simpler to delete the either database and re-create it, rather than the individual tables. Collin On Friday,

Re: Running middleware within ATOMIC_REQUESTS transaction

2015-03-10 Thread Marc Aymerich
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 have found is that middlewares

Re: Running middleware within ATOMIC_REQUESTS transaction

2015-03-10 Thread Marc Aymerich
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 have found is that middlewares do not run inside the > ATOMIC_REQUESTS transaction. But I want the ATOMIC_REQUESTS

Running middleware within ATOMIC_REQUESTS transaction

2015-03-10 Thread Marc Aymerich
Hi, I have a middleware that performs some operations at the end of each request. What I have found is that middlewares do not run inside the ATOMIC_REQUESTS transaction. But I want the ATOMIC_REQUESTS transaction to rollback if an exception is being raised on my middleware. Any idea on how to

Re: How to make responsinator.com working with Django?

2015-03-10 Thread inoyon artlover KLANGRAUSCH
Hi no. I did a responsive site with bootstrap. But when I enter the url in responinator, nothing happens. .. Am Dienstag, 10. März 2015 16:05:03 UTC+1 schrieb inoyon artlover KLANGRAUSCH: > > Hi there, > > how can I get Django working with responsinator.com ? > > Best regards! :) > -- You

Re: How to make responsinator.com working with Django?

2015-03-10 Thread Vijay Khemlani
Your question is how to make a responsive website or something else? On Tue, Mar 10, 2015 at 12:05 PM, inoyon artlover KLANGRAUSCH < inoyonartlo...@googlemail.com> wrote: > Hi there, > > how can I get Django working with responsinator.com ? > > Best regards! :) > > -- > You received this message

Re: How to modify and then recombine json response data without breaking json formatting

2015-03-10 Thread Bill Freeman
OK. but I need more code context. The if statement that does the modification is clearly python, so at that point rspnsdata must be a python dictionary, not a JSON string. Yet, if I understand you correctly, it is JSON to begin with (and you are using json.loads() to turn it into python data so

How to make responsinator.com working with Django?

2015-03-10 Thread inoyon artlover KLANGRAUSCH
Hi there, how can I get Django working with responsinator.com ? Best regards! :) -- 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

Re: Generic Relation in Legacy Database?

2015-03-10 Thread ringemup
Avraham, are you at all familiar with Django’s GenericForeignKey model field? It relies on *two* fields in the model. Django resolves a generic foreign key by looking up the content type (a FK to the content types table) to figure out what table to look for the object ID in. Then it looks

Re: Generic Relation in Legacy Database?

2015-03-10 Thread Avraham Serour
for each field in the model you can specify the column name un the db, it does have a default way of calculating that, but you can specify in any case you can tell the django ORM that this field is not an int, it is actually a foreign key, let me know if that works what DB are you using? mysql?

Re: Binding hand written HTML(form) or forms that are not created through djnago forms to django forms validation errors

2015-03-10 Thread Scot Hacker
On Tuesday, March 10, 2015 at 4:10:48 AM UTC-7, Mahesh Thipparthi wrote: > > Hi All, > Kindly help me with following questions. > > Use case is this: > 1. i have created a form manually ( not generated through django forms) > 2. I am calling a Django view function upon submission. > 3.

Re: Generic Relation in Legacy Database?

2015-03-10 Thread Nan
Thanks, Avraham -- I was planning to use inspectdb as a first step, and it's very handy in streamlining building models! But that doesn't even begin to solve the problem of how a GFK modeled differently than Django's ORM does can be used as an actual foreign key. On Sunday, March 8, 2015 at

Re: Binding hand written HTML(form) or forms that are not created through djnago forms to django forms validation errors

2015-03-10 Thread Vijay Khemlani
Unbound forms have no validation errors as they haven't been filled yet by the user. I think you are trying to solve the wrong problem. Why are you creating your form manually in the first place? Your HTML markup is easy to do with Django forms and packages suck as crispy forms On Tue, Mar 10,

GSoKites Virtual Classroom

2015-03-10 Thread Barclay Koin
*Hi am Barclay from Nairobi Kenya currently a student at Dedan kimathi University of Technology. Am applying for GSoKites Virtual Classroom and would like to a part of the growing community.* -- You received this message because you are subscribed to the Google Groups "Django users" group.

Binding hand written HTML(form) or forms that are not created through djnago forms to django forms validation errors

2015-03-10 Thread Mahesh Thipparthi
Hi All, Kindly help me with following questions. Use case is this: 1. i have created a form manually ( not generated through django forms) 2. I am calling a Django view function upon submission. 3. validating the field through django form as i ensured that form names are same. question