Re: Search from database

2013-07-25 Thread Kamal Kaur
On Wed, Jul 24, 2013 at 5:15 AM, Amirouche Boubekki wrote: > Apache solr or ElasticSearch: yes Is this the right method for installation? What is the need to adduser? http://www.cubrid.org/wiki_tutorials/entry/install-apache-solr-on-ubuntu These commands don't extract the files: http://django-ha

Re: django.contrib.auth and username's field size

2013-07-25 Thread Mike Dewhirst
On 26/07/2013 8:12am, Jonathan Baker wrote: Ideally your Django project would contain many different applications, which in turn have their own models.py module. I've yet to work on a project large enough to warrant that i try this, so what I'm about to say is completely untested... but I would t

Re: cannot import name current_datetime

2013-07-25 Thread Mike Dewhirst
On 25/07/2013 5:18pm, jacob poke wrote: Djangobook on the internet. Quick beginners question: In Chapter 3, where I am looking at a dynamic webpage in the 2nd example I am running into some problems with the current_datetime function I am trying to set up. When, in views.py I insert the "datet

Re: django.contrib.auth and username's field size

2013-07-25 Thread Jonathan Baker
Ideally your Django project would contain many different applications, which in turn have their own models.py module. I've yet to work on a project large enough to warrant that i try this, so what I'm about to say is completely untested... but I would think that creating a 'models' directory inside

Re: django.contrib.auth and username's field size

2013-07-25 Thread Ivan Voras
Thanks! While I have a newbie thread going, let me ask you one more thing: I like the concepts behind Django models, but what are the best practices for organizing models into files for large-ish scale projects? Keeping all model classes in a single models.py file is not scalable, and I'd rathe

Re: django.contrib.auth and username's field size

2013-07-25 Thread Jonathan Baker
Hi Ivan, and welcome. Django >= 1.5 features custom User models, which I believe would solve your problem: https://docs.djangoproject.com/en/dev/topics/auth/customizing/#specifying-a-custom-user-model On Thu, Jul 25, 2013 at 3:25 PM, Ivan Voras wrote: > Hello, > > I'm new to Django, and still f

django.contrib.auth and username's field size

2013-07-25 Thread Ivan Voras
Hello, I'm new to Django, and still finding out how it all fits together. I've seen django.contrib.auth and I'm wondering - is it a common practice to actually use it as a basis for application authentication? If so, I have a question: the username field as defined (30 characters) is too short

Re: Should anyone be using Django 1.3 in production at this point?

2013-07-25 Thread Bjorn Tipling
Thank you for the reply. Upgrading as soon as possible makes the most sense. On Wednesday, July 24, 2013 12:03:49 PM UTC-7, Bjorn Tipling wrote: > > The django downloads section says versions of Django 1.3 are no longer > supported with bug and security fixes. Obviously nobody ought to start a >

Re: or-ing to QuerySets turns INNER into LEFT OUTER joins?

2013-07-25 Thread Tom Evans
On Thu, Jul 25, 2013 at 4:42 PM, Carsten Fuchs wrote: > Hi Tom, > > thank you very much for your reply! > > Am 25.07.2013 12:17, schrieb Tom Evans: > >> Isn't this to be expected? You've asked Django to OR the querysets. >> This means that you are looking for tuples from STAFF where either the >>

Re: server error (500)

2013-07-25 Thread Charly Román
You need to add a app, the error is clear, yo don't have anything to show. 2013/7/25 Oliver : > Thanks Evans. I'm new to Django so Im trying to learn faster on setting up > my project or apps. I appreciate the help for pointing out what I'm > missing. > > Thanks so much. I'll get to work now :)

Re: or-ing to QuerySets turns INNER into LEFT OUTER joins?

2013-07-25 Thread Carsten Fuchs
Hi Tom, thank you very much for your reply! Am 25.07.2013 12:17, schrieb Tom Evans: Isn't this to be expected? You've asked Django to OR the querysets. This means that you are looking for tuples from STAFF where either the join+conditions to ERFASST match or the join+conditions to STAFF_BEREICH

Re: server error (500)

2013-07-25 Thread Oliver
Thanks Evans. I'm new to Django so Im trying to learn faster on setting up my project or apps. I appreciate the help for pointing out what I'm missing. Thanks so much. I'll get to work now :) On Thursday, July 25, 2013 9:36:53 AM UTC-4, Tom Evans wrote: > > On Thu, Jul 25, 2013 at 2:32 PM

Re: server error (500)

2013-07-25 Thread Oliver
I change the ALLOWED_host = ['*']. Now I'm getting this "Not Found the requested URL / not found on the server" On Thursday, July 25, 2013 8:19:13 AM UTC-4, Oliver wrote: > > when you change Debug=False > > > > > On Thursday, July 25, 2013 8:12:14 AM UTC-4, victoria wrote: >> >> The erro

Re: server error (500)

2013-07-25 Thread Tom Evans
On Thu, Jul 25, 2013 at 2:32 PM, Oliver wrote: > I change the ALLOWED_host = ['*']. Now I'm getting this "Not Found the > requested URL / not found on the server" Yes. You will need to add some views and URLs to the server if you want to see things when you go to URLs. When you still had debu

Re: server error (500)

2013-07-25 Thread Oliver
I did allowed host to 0.0.0.0. It's back to server error(500) On Thursday, July 25, 2013 9:32:45 AM UTC-4, Christian Erhardt wrote: > > Set Allowed Hosts to 0.0.0.0 > > Am Donnerstag, 25. Juli 2013 14:19:13 UTC+2 schrieb Oliver: >> >> when you change Debug=False >> >> >> >> >> On Thursday, July 2

Re: server error (500)

2013-07-25 Thread Christian Erhardt
Set Allowed Hosts to 0.0.0.0 Am Donnerstag, 25. Juli 2013 14:19:13 UTC+2 schrieb Oliver: > > when you change Debug=False > > > > > On Thursday, July 25, 2013 8:12:14 AM UTC-4, victoria wrote: >> >> The error log doesn't show anything. In which step following the >> documentation are you getting t

Html templates editor autocomplete Eclipse(PyDev)

2013-07-25 Thread Новак Бошков
I can't find any settings for Django editor in PyDev to possibly adjust autocompletion for html code. Now when I type there is no any suggestions for html code, I have to type every single tag. I've made .htmlfile by right click on project root->New->file and just named file template.html. How t

Re: server error (500)

2013-07-25 Thread Oliver
when you change Debug=False On Thursday, July 25, 2013 8:12:14 AM UTC-4, victoria wrote: > > The error log doesn't show anything. In which step following the > documentation are you getting this error? > > On Thu, Jul 25, 2013 at 12:09 PM, Oliver > > wrote: > > my environment is in my local

Re: server error (500)

2013-07-25 Thread victoria
The error log doesn't show anything. In which step following the documentation are you getting this error? On Thu, Jul 25, 2013 at 12:09 PM, Oliver wrote: > my environment is in my local pc or machine so its a development machine. > > I tried that empy field in allowed_host. > > > > > > On Thursd

Re: cannot import name current_datetime

2013-07-25 Thread jacob poke
hi - I am having the same problem to this and wondering if anyone found a solution? I dont really want to move on until i solve this. I have tried to change the text in the "Hello world" section but the browser continues to show "hello world". I also tried to develop a url similar to "Hello" u

[no subject]

2013-07-25 Thread J C
How are you? http://howtobuildrippedmuscles.com/avwr/from.php?J_C havea nice day! -- 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...

Re: Unable to open database.

2013-07-25 Thread jk121960
You need path from root of file system so if home is in normal place off root, start with /home, also put db name as the last responder said Gerald Klein DBA contac...@geraldklein.com www.geraldklein.com geraldklein.wordpress.com j...@zognet.com 708-599-0352 Arch/Gentoo Awesome, Ranger & Vim t

Re: Unable to open database.

2013-07-25 Thread Sergiy Khohlov
linux does not need extension Many thanks, Serge +380 636150445 skype: skhohlov On Thu, Jul 25, 2013 at 1:43 PM, Nigel Legg wrote: > So should I put > home/stats_portal/stats_/portal/myproject/myproject/database/sqlite3 ? > (settings.py in second myproject folder) > The database file name is

Re: Unable to open database.

2013-07-25 Thread Nigel Legg
So should I put home/stats_portal/stats_/portal/myproject/myproject/database/sqlite3 ? (settings.py in second myproject folder) The database file name is sqlite3, this worked on Windows with no file extension, does Linux require it? Regards, Nigel Legg 07914 740972 http://www.trevanianlegg.co.uk

Re: Unable to open database.

2013-07-25 Thread abhijeet shete
Hi Nigel You have just given the path of db but you need to mention db name in the DATABASES field of settings file. > > 'NAME': '/myproject/database/sqlite3', > 'NAME': '/myproject/database/sqlite3/example.db', Regards. Software Engineer | mquotient | Mobile +91.9860219

Re: Unable to open database.

2013-07-25 Thread Gerald Klein
It looks fine but that depends on your folder structure but this is showing "myproject" off the root of the file system, is that correct? On Thu, Jul 25, 2013 at 5:12 AM, Nigel Legg wrote: > I have just moved my project from Windows to Linux. I have maintained the > folder structure, but am

Re: or-ing to QuerySets turns INNER into LEFT OUTER joins?

2013-07-25 Thread Tom Evans
On Wed, Jul 24, 2013 at 5:39 PM, Carsten Fuchs wrote: > Hi all, > > Am 15.07.2013 17:41, schrieb Carsten Fuchs: > >> we have two queries/QuerySets Q_a and Q_b, each of which use INNER joins >> in the generated SQL when evaluated individually. >> >> When I use a Q object to "OR" these two QuerySets

Unable to open database.

2013-07-25 Thread Nigel Legg
I have just moved my project from Windows to Linux. I have maintained the folder structure, but am getting the message "Unable to open database file - sqlite3". Settings as follows: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.sqlite3', 'NAME': '/myproject/database/

Re: server error (500)

2013-07-25 Thread Oliver
my environment is in my local pc or machine so its a development machine. I tried that empy field in allowed_host. On Thursday, July 25, 2013 5:43:02 AM UTC-4, Mário Idival wrote: > > use this in your settings.py > ALLOWED_HOSTS = [] > > where are you envirioment? you app there in producti

Re: server error (500)

2013-07-25 Thread Oliver
Hi Victoria, attached is my the error log from the apache2 Thanks On Thursday, July 25, 2013 3:35:00 AM UTC-4, victoria wrote: > > Hi, > > On Thu, Jul 25, 2013 at 4:30 AM, Oliver > > wrote: > > If I set DEBUG = False, I get this > > > > It worked! > > > > Congratulations on your first

Re: /admin redirects me to 127.0.0.1:8000/admin on nginx+gunicorn production server

2013-07-25 Thread Daniel Oźminkowski
I thought that it may be connected to Chrome's Omnibox, but honestly now I can not replicate that behaviour. It works fine in and out of incognito mode. Best regards, Daniel Ozminkowski 2013/7/24 Avraham Serour > Well, if it works on incognito mode you should try cleaning your cookies > On Jul

Re: server error (500)

2013-07-25 Thread Mário Idival
use this in your settings.py ALLOWED_HOSTS = [] where are you envirioment? you app there in production or development? Em 25/07/2013 04:35, "victoria" escreveu: > > Hi, > > On Thu, Jul 25, 2013 at 4:30 AM, Oliver wrote: > > If I set DEBUG = False, I get this > > > > It worked! > > > > Congratula

How to get the right url of models in generic views?

2013-07-25 Thread Floor Tile
#urls.py from .models import Entry from django.conf.urls import patterns, url from django.views.generic.dates import (ArchiveIndexView, YearArchiveView, MonthArchiveView, DayArchi

Re: server error (500)

2013-07-25 Thread victoria
Hi, On Thu, Jul 25, 2013 at 4:30 AM, Oliver wrote: > If I set DEBUG = False, I get this > > It worked! > > Congratulations on your first Django-powered page. > > Of course, you haven't actually done any work yet. Here's what to do next: > > If you plan to use a database, edit the DATABASES settin