Re: I don't understand this error - Django 1.9

2016-03-04 Thread Luis Zárate
Do not use the same name of the project in your apps. It is possible to do what you are doing but really needs comprehension of how python works and you need to do extra work to get ready. So my remendation is: start a clean project with other name and copy you app folder. Put attention in what

Re: How to create groups for users in Django

2016-03-04 Thread Luis Zárate
Años observation Person.objects.create(name=request.user) Lazy object is set but name is charfield. M1is not saved. form.save() create other group that is not used. El jueves, 3 de marzo de 2016, escribió: > Hello! > > I have a problem, like in topic, with creating

Re: Django Hello

2016-03-04 Thread Luis Zárate
I am not in Cuba, but there are internet limitations (bandwidth) and restrictions (regional banned and site blacklist) expecially if servers are in USA (not America), for this reason it is important to him download a file. El viernes, 4 de marzo de 2016, Luis Zárate

Re: Django Hello

2016-03-04 Thread Luis Zárate
In fat bellow says: I can send you some pdf split in files of 2mb. Hola, si quiere puedo envíarle por email algunos tutoriales en pdf . Yo uso linux por lo que puedo partirlos con split y Ud podrá unirlos con cat. Django se basa en python Ud conoce este lenguaje. El viernes, 4 de marzo de

Re: Django OVH

2016-03-04 Thread Bob Gailer
On Mar 4, 2016 5:09 PM, "Cedric Vallee" wrote: > > To whom it may concern, > > I followed my friends' advice and coded a website in Django, but now it seems virtually impossible to find documentation about how to host a Django website on 'classic' hosting servers like

Re: more than one field for aggregates? (ArrayAgg, StringAgg)

2016-03-04 Thread Tomasz Nowak
After setting DatabaseFeatures.allows_group_by_selected_pks = False the "extra(select=...)" version still copies the expression to the "GROUP BY": GROUP BY (( SELECT json_agg(inseminacja.*) FROM inseminacja WHERE inseminacja.cow_life_number = animal.life_number )), ... W dniu piątek, 4

Re: Development of web based image processing package

2016-03-04 Thread Xristos Xristoou
if i want only raster processing for remote sensing and satellite images ?how can i do with python ?python library for that ? Τη Πέμπτη, 3 Μαρτίου 2016 - 7:47:56 μ.μ. UTC+2, ο χρήστης Neha Chhattani έγραψε: > > hello > i want to create a website that will do image processing in real time. i

Re: more than one field for aggregates? (ArrayAgg, StringAgg)

2016-03-04 Thread Tomasz Nowak
Hi Simon! Thank you for your suggestions. Indeed, I get {'wynikbadania_cnt': 4, 'inseminacja_cnt': 4}. Adding the 'DISTINCT ON' (just after the initial SELECT) results in a message that both ".id" columns "must appear in the GROUP BY clause or be used in an aggregate function". On the other

Django OVH

2016-03-04 Thread Cedric Vallee
To whom it may concern, I followed my friends' advice and coded a website in Django, but now it seems virtually impossible to find documentation about how to host a Django website on 'classic' hosting servers like OVH. Could you please tell me what I have to do so that my website appears when

Re: I don't understand this error - Django 1.9

2016-03-04 Thread Alex Heyden
If you get longer stacktraces back, those might help in identifying what exactly is going wrong. As a first pass cleanup, try: * remove 'ladynerds' from the bottom of INSTALLED_APPS. You're already including it up top * change __init__.py to read "default_app_config =

Re: more than one field for aggregates? (ArrayAgg, StringAgg)

2016-03-04 Thread Simon Charette
In order to make sure the bug doesn't lie in your expressions could you try running the following queryset: Animal.objects.filter(pk='PL005257066205').annotate( inseminacja_cnt=Count('inseminacja'), wynikbadania_cnt=Count('wynikbadania'), ) If the results are `inseminacja_cnt=4` and

Re: more than one field for aggregates? (ArrayAgg, StringAgg)

2016-03-04 Thread Simon Charette
Hi Thomasz, I think this might be a bug in either your custom expressions or Django's GROUP BY handling on PostgreSQL. Can you try setting `django.db.backends.postgresql.features.DatabaseFeatures.allows_group_by_selected_pks` to `False` and see if the appropriate GROUP BY clause is generated?

I don't understand this error - Django 1.9

2016-03-04 Thread Becka R.
Hi, I'm building a pretty basic CRUD application for a community I'm part of. I'm now getting "ImportError: No module named [myappname]" when I run the server, and an operational error in the admin. I looked at the documentation, and followed the steps, but I'm not doing something

Re: Trouble Transitioning from SQLite to Postgres

2016-03-04 Thread Mike Dewhirst
On 5/03/2016 7:35 AM, TMC wrote: I'm new, and I'm having an issue switching to my Django 1.9 database to Postgres. Having made the switch, all my unit tests pass just fine, and the site works exactly the way I want it to when I run it locally. However, my Selenium tests all fail at the login

Re: Django Hello

2016-03-04 Thread Bruno Barbosa
But these tutorials are online.. you don't need download it.. -- Bruno Barbosa Web Developer *brunobarbosa.com.br * On Fri, Mar 4, 2016 at 5:57 PM, wrote: > I have been seeing it but I just have acces https://www.djangoproject.com/ > and

Re: more than one field for aggregates? (ArrayAgg, StringAgg)

2016-03-04 Thread Tomasz Nowak
Hi! I would like to create a JSON structure of chosen objects (animals) with corresponding events in one database hit. The model represents animals and different types of events that happened to them: class Animal(models.Model): life_number = models.TextField(primary_key=True) birthday

Re: Django Hello

2016-03-04 Thread direcoape
I have been seeing it but I just have acces https://www.djangoproject.com/ and this one too https://docs.djangoproject.com/en/1.9/intro/ but just thouse one, I would like to get some tutorials but my big problem is my email, I can not get a file bigger than 2 mb haha I live in Cuba

Re: Django Hello

2016-03-04 Thread Bruno Barbosa
I think that a good start point is the django official website https://www.djangoproject.com/ and your intro tutorial: https://docs.djangoproject.com/en/1.9/intro/ Also, you can see the Django spanish site: http://django.es/ -- Bruno Barbosa Web Developer On Fri, Mar 4, 2016 at 4:25 PM,

Re: Admin page missing icons

2016-03-04 Thread Bruno Barbosa
sorry, the correct command is: python manage.py collectstatic -- Bruno Barbosa Web Developer On Fri, Mar 4, 2016 at 5:09 PM, Bruno Barbosa wrote: > Are you running django with DEBUG=False? > ​​ > Try run python.py manage.py collectstatic then reload page. > > -- > Bruno

Django Hello

2016-03-04 Thread direcoape
Hello I new in Django I would like to get some tutorials. I speak Spanish, is somobody here who speak spanish? please, help me about that This message was sent using IMP, the Internet Messaging Program. -- Este mensaje le ha

MultipleCharField

2016-03-04 Thread Rafael Macêdo
Sou iniciante em Django e gostaria de saber se há algum tipo de campo na classe Model semelhante ao MultipleChoiceField da classe Form. Obrigado desde já. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Admin page missing icons

2016-03-04 Thread Bruno Barbosa
Are you running django with DEBUG=False? ​​ Try run python.py manage.py collectstatic then reload page. -- Bruno Barbosa Web Developer *brunobarbosa.com.br * On Fri, Mar 4, 2016 at 4:13 PM, wrote: > In your browser enable "network inspector" and

Trouble Transitioning from SQLite to Postgres

2016-03-04 Thread TMC
I'm new, and I'm having an issue switching to my Django 1.9 database to Postgres. Having made the switch, all my unit tests pass just fine, and the site works exactly the way I want it to when I run it locally. However, my Selenium tests all fail at the login stage. It's odd--if I follow the

Re: Problem Django.19 upgrade and circular imports

2016-03-04 Thread Andres Osinski
The thing is that in my case, I have a model in the 'accounts' app which inherits from a model in 'common', therefore I need the import to happen in one's models. I've tried this in Django 1.8 and I see the same behavior; therefore the change occurs between the latest versions of 1.7 and 1.8.

Re: django: ajax simple loading gif not working/ over-riding render to output page

2016-03-04 Thread aspellip
I'm using nginx + upload_progress module On the HTML page for progress bar I'm using iframe + ajax u can find a result here http://fex.cc On Thursday, March 3, 2016 at 9:23:53 PM UTC+2, clarkso...@gmail.com wrote: > > Hoping that this network can help me out even though this is not strictly

Database migrations

2016-03-04 Thread Daniel Roseman
What are you expecting to happen? The message is quite clear, and offers the only two possible options. Are neither of those suitable? Why not? What other action would you like to take? -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group.

Re: Admin page missing icons

2016-03-04 Thread aspellip
In your browser enable "network inspector" and reload page, you will see where is icon must locate. For example: On Friday, March 4, 2016 at 3:16:37 PM UTC+2, David Hou wrote: > > Hi all, > > > I'm really new to Django and am just working through the tutorials right > now. I noticed that my

Re: more than one field for aggregates? (ArrayAgg, StringAgg)

2016-03-04 Thread Simon Charette
Hi Thomasz, Using extra() is a dead end as it's planned to be removed. It's hard for me to guide you about how you should use the expression API with no model definition or queryset. Could you provide us with the set of model and the annotated querysets you're building? The queryset's SQL

Re: Development of web based image processing package

2016-03-04 Thread James Schneider
On Mar 3, 2016 3:54 PM, "Xristos Xristoou" wrote: > > @james celeny support .grid raster image type ? > > Celery only handles the background task management, not the task itself. It would be responsible for firing another script that would handle the image manipulation, and

Re: Renaming fields in values statements django 1.8

2016-03-04 Thread Simon Charette
Hi Jonty, There's a ticket tracking the addition of this feature[1] but it has not been fixed yet. Cheers, Simon [1] https://code.djangoproject.com/ticket/16735 Le vendredi 4 mars 2016 08:09:20 UTC-5, Jonty Needham a écrit : > > Is there a way to do it? I've seen the method with extra, but

Re: Renaming fields in values statements django 1.8

2016-03-04 Thread Simon Charette
Hi Jonty, There's a ticket tracking the addition of this feature[1] but it has not been fixed yet. Cheers, Simon [1] https://code.djangoproject.com/ticket/16735 Le vendredi 4 mars 2016 08:09:20 UTC-5, Jonty Needham a écrit : > > Is there a way to do it? I've seen the method with extra, but

Re: more than one field for aggregates? (ArrayAgg, StringAgg)

2016-03-04 Thread Tomasz Nowak
Hi Simon, thank you for your suggestion! I managed to accomplish that for one column with custom ROW function and JSON version with JSON_AGG and JSON_BUILD_OBJECT. However when using two such annotations the number of aggregated elements gets multiplied by the number of elements in the other

Django for System Administration (Windows and Linux)

2016-03-04 Thread Edison Dungog
Hi Django Users, Good Day. Appreciate your assistance if you can point me a reference for a reusable app/s that I can use to do system administration such as installing and uninstalling software on local machine, listing installed programs on local machine, system information etc. Thanks and

Re: help with django-guardian

2016-03-04 Thread Joshua Chan
There is a folder called guardian_migrations -- 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,

Strategies for apps dealing with large interdependent data sets

2016-03-04 Thread Larry Martell
I have to build an app that has many (~15) interdependent selection fields that come from large datasets across multiple different types of databases. For example, field A might have 10 values in a drop down, and when the user selects "FOO", then field B's drop down gets populated with 30 choices

Retrieve Specific Fields

2016-03-04 Thread venkatesh penchala
Hello, I am new to Web Development and chose Django Framework based on very good reviews by my friends. I am following tutorials all over the docs. I have a requirement in mind to retrieve data from database which is very straight forward. But how do I retrieve specific results? For example,

Web App for M. Tech Dissertation

2016-03-04 Thread Haruna Yakubu
Hello friends, Please suggest me a simple project on Python and Django to do as my M. Tech dissertation. thanks -- 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

Admin page missing icons

2016-03-04 Thread David Hou
Hi all, I'm really new to Django and am just working through the tutorials right now. I noticed that my admin page is missing some icons (circled in red below). Inspecting the html at these locations shows that there is no icon being referenced here. Is there something I'm missing in my

Renaming fields in values statements django 1.8

2016-03-04 Thread Jonty Needham
Is there a way to do it? I've seen the method with extra, but that doesn't seem to work for me. Does the 1.8 ORM support this out of the box? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Django 1.9 Apps aren't loaded yet

2016-03-04 Thread Larry Martell
On Wed, Mar 2, 2016 at 9:34 AM, Michal Petrucha wrote: > On Wed, Mar 02, 2016 at 08:20:44AM -0500, Larry Martell wrote: >> On Wed, Mar 2, 2016 at 7:37 AM, Michal Petrucha >> wrote: >> > On Wed, Mar 02, 2016 at 07:05:53AM -0500, Larry

Re: help with django-guardian

2016-03-04 Thread 'Tom Evans' via Django users
On Thu, Mar 3, 2016 at 10:58 PM, Joshua Chan wrote: > First off, I am new to both django and python. > > I am extending an existing app. We have several admin.py files > > They all look like this: > > #!/usr/bin/env python > # coding: utf-8 > from guardian.admin

Database migrations

2016-03-04 Thread raoul
Hi all, I have been playing around with Django now for a couple of weeks I have been adding apps to my project and one point of frustration is the migration. When there are PK and/or FK relations: You are trying to add a non-nullable field 'user' to user without a default; we can't do that