Re: empty filter fields displaying entire queryset

2015-11-11 Thread James Schneider
On Nov 10, 2015 11:53 PM, "Daniel Sears" wrote: > > I want to create a list view that searches a large dataset. But it seems that if I use a filterset with empty defaults, then my view displays my entire dataset. > > If tried creating a get_queryset method in my view that

Re: Django on CentOS

2015-11-11 Thread James Schneider
On Nov 10, 2015 9:46 AM, "Robin Fourcade" wrote: > > Thanks James, > I looked at many tutorials like: > > https://www.digitalocean.com/community/tutorials/how-to-install-the-django-web-framework-on-centos-7 >

Connecting to FirebirdSQL-Database as a second DB

2015-11-11 Thread Djangaroo
Hello everybody, I'm having trouble connecting a second Database to my Django Project. I would like to read Data from the Firebirdsql database, to display on my Website. I have downloaded 'django-firebird' Link This is the setup I am using, wicht

Re: Connecting to FirebirdSQL-Database as a second DB

2015-11-11 Thread Jani Tiainen
Hi, Are you sure that django-firebird is compatible with version of Django you're using? Docs seem to indicate that django-firebird supports only Django 1.6.x On 11.11.2015 11:39, Djangaroo wrote: Hello everybody, I'm having trouble connecting a second Database to my Django Project. I

Re: Connecting to FirebirdSQL-Database as a second DB

2015-11-11 Thread Djangaroo
Hi, Thanks for the quick answer! No I'm not sure if it's compatible... I'm using Django 1.8.2 if that helps I really don't know how I need to go about this. I can't find a way to connect my Database with the Django Project. At the moment I'm trying to get this

Re: Connecting to FirebirdSQL-Database as a second DB

2015-11-11 Thread Jani Tiainen
As I said, django-firebird is compatible with Django 1.6.x and older releases. So it won't work with Django 1.8.2 You do have three options: 1) Fix or ask someone to fix django-firebird to support Django 1.8 2) Use Firebird database without Django ORM directly. 3) Use Django 1.6.x (not

HttpResponse Redirect does not work with Internet Explorer behind proxy

2015-11-11 Thread Ludwig Hinske
Dear group, I hope you can help me get an idea about where to search for a solution to my problem; The application I developed displays a login-form on the start page. When the user successfully logs in, the Django view returns a HttpResponseRedirect object to the members area view (views

TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-11 Thread Jose Paul
getting following error ,can someone help me to understand this . compiled_result = compile_func(self, token) File "C:\Python27\lib\site-packages\django\template\defaulttags.py", line 1140, in load (taglib, e)) TemplateSyntaxError: 'subpackage.echo' is not a valid tag library:

Re: How do I server my app in apache in subdirectory?

2015-11-11 Thread frocco
Looks like it is working now. I tried localhost/mysite (which failed) this works localhost/mysite/admin On Tuesday, November 10, 2015 at 3:42:07 PM UTC-5, frocco wrote: > > I get a 404 error > > WSGIScriptAlias /mysite > C:/MAMP/htdocs/django/vnatracking/vnatracking/wsgi.py > > >> -- You

Searching for the best way to provide temporary access on resources for non-registered users with the rest-framework

2015-11-11 Thread lnzy35en
  Hi,   At the moment I am trying to figure out the best way to provide non-authenticated and non-registered users temporary (read and update) access to objects.   The first Idea I had was storing a token = models.CharField(max_length=64,unique=True) for every instance of the model which I

Re: How do I add permissions in admin for proxy model?

2015-11-11 Thread frocco
This is still not working. On Tuesday, November 10, 2015 at 11:36:39 AM UTC-5, frocco wrote: > > Just an update. > This is now working in django 1.8.6 > > On Monday, November 9, 2015 at 3:31:35 PM UTC-5, frocco wrote: >> >> I have >> >> class qry485Missing(Tracking): >> class Meta: >>

Just starting, cannot create Password for superuser

2015-11-11 Thread Raja Weise
Hi there, I am having difficulty while following the "Writing your First Django app, Part 2." Everything prior to this I believe I have done correctly, as I have been testing along the way just as the instructions say, however when creating the admin user, in cmd I cd to C:\Python27\mysite

Re: Just starting, cannot create Password for superuser

2015-11-11 Thread Andreas Kuhne
Hi Raja, What do you mean it doesn't allow you to type anything at all? It shouldn't echo anything. The prompt doesn't move when inputing the password and that's the way it should be. Try to add a password and the press enter. You should then be prompted to re-enter the password. Without echoing

Re: Just starting, cannot create Password for superuser

2015-11-11 Thread Avraham Serour
you are able to type the password, but it is not echoed just type your password and press enter, if I'm I remember correctly it will ask you to type again to confirm On Wed, Nov 11, 2015 at 7:34 PM, Raja Weise wrote: > Hi there, > I am having difficulty while following the

problema con un select

2015-11-11 Thread miguel angel lopez mendo
view def medios(request): medios = Medio.objects.filter() template = 'products/Clientes.html' print medios return render(request, template, locals()) model- class Medio (models.Model): nombre_medio =

Re: How do I add permissions in admin for proxy model?

2015-11-11 Thread Simon Charette
Hi frocco, This might be related to #11154 and #17904 . Did you try running the `migrate` command? It looks like it might trigger the creation of your custom permissions

Re: Django on CentOS

2015-11-11 Thread Robin Fourcade
As I'm not comfortable at all with this, I tried with ubuntu, wich has python 2.7 by default. I follow this tutorial: https://www.digitalocean.com/community/tutorials/how-to-serve-django-applications-with-apache-and-mod_wsgi-on-ubuntu-14-04 Everything was working well, except at the end, I've

Re: TemplateSyntaxError: 'subpackage.echo' is not a valid tag library

2015-11-11 Thread James Schneider
On Nov 11, 2015 4:33 AM, "Jose Paul" wrote: > >getting following error ,can someone help me to understand this > > . > compiled_result = compile_func(self, token) > File "C:\Python27\lib\site-packages\django\template\defaulttags.py", line 1140, in load >

Re: Django on CentOS

2015-11-11 Thread Luis Zárate
Are you install your app as root user? (/root/pizzaclub) The permission denied it's because apache run as www-data or http user not as root, so if you install your app as root you probably have read/write permission problems and a big security issue. 2015-11-11 13:01 GMT-06:00 Robin Fourcade

Re: problema con un select

2015-11-11 Thread Alan Ávalos Hernández
En el método del view, no estás regresando la colección de objetos tipo Medio. Sent from my iPhone > On Nov 11, 2015, at 12:19 PM, miguel angel lopez mendo > wrote: > > view > > def medios(request): > medios = Medio.objects.filter() >

Re: Django on CentOS

2015-11-11 Thread Robin Fourcade
Hi, thanks for your answer. That's what I did. So if it's a big issue, I'll create a new user on my server and I'll redo the installation through this user ! Thanks, Robin. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: Django on CentOS

2015-11-11 Thread Robin Fourcade
Hi, So I made another install with a new user (pizzaclub). I wrote this in the default.conf: ServerAdmin webmaster@localhost DocumentRoot /var/www/html ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined Alias /static /home/pizzaclub/pizzaclub/static

Best way to consume the own API to serve both a frontend for non API users and pure API access?

2015-11-11 Thread lnzy35en
Hi guys,   Following the API first mindset I created my first API with Django rest-framework. Using generic-views helps a lot and makes that a piece of cake, especially with the support of the community.   The challenge is now to create a nice UI for the API. Normally I would create the

Re: Just starting, cannot create Password for superuser

2015-11-11 Thread Raja Weise
Thank you so much! I didn't know that it didn't echo even **. On Wednesday, November 11, 2015 at 12:36:02 PM UTC-5, Raja Weise wrote: > > Hi there, > I am having difficulty while following the "Writing your First Django app, > Part 2." Everything prior to this I believe I have done correctly, as

DoesNotExist: Group matching query does not exist.

2015-11-11 Thread Robin Fourcade
Hi, I'm working with the auth library. I've imported all of these: from django.shortcuts import render, redirect from pizza_club_order.forms import * from pizza_club_order.models import * from django.contrib import auth from datetime import timedelta, date, datetime, time But when I'm trying to

Re: Django on CentOS

2015-11-11 Thread Robin Fourcade
Riiigghh, After many many many tries, it finally worked ! Thanks again, thank you, everybody! Robin. -- SOLVED. -- 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

Re: DoesNotExist: Group matching query does not exist.

2015-11-11 Thread Vijay Khemlani
It seems you don't have any groups in your database with the name "test" On Wed, Nov 11, 2015 at 7:14 PM, Robin Fourcade wrote: > Hi, > I'm working with the auth library. > > I've imported all of these: > > from django.shortcuts import render, redirect > from

Domain Driven Development

2015-11-11 Thread Alex Newman
I almost hate to bring this up, but we are reading Eric Evan's book "Domain Driven Development" at my company in our technical bookclub and some techniques in the book seem to be hard to apply in DJango. The main one being the notion of aggregations: >From

Re: Domain Driven Development

2015-11-11 Thread Avraham Serour
I believe you could call a queryset this thing, or this thing a queryset On Thu, Nov 12, 2015 at 12:43 AM, Alex Newman wrote: > I almost hate to bring this up, but we are reading Eric Evan's book > "Domain Driven Development" at my company in our technical bookclub and > some

Re: Domain Driven Development

2015-11-11 Thread Mike Dewhirst
On 12/11/2015 9:43 AM, Alex Newman wrote: I almost hate to bring this up, but we are reading Eric Evan's book "Domain Driven Development" at my company in our technical bookclub and some techniques in the book seem to be hard to apply in DJango. The main one being the notion of aggregations:

How to get logged username in template

2015-11-11 Thread Dariusz Mysior
I am using Django 1.8 with Python 3.4 I had no idea why my template doesn't show my username on template profile.html :/ profile.py {% load staticfiles %} {% block content %} My profile {{ request.user.username }} {% endblock %} views.py from django.contrib.auth.forms import