Re: Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-31 Thread Jon Blake
Thanks, Ian, I did miss that. Bookmarked for future reference. On Saturday, September 1, 2012 3:16:38 PM UTC+10, Ian wrote: > > On Fri, Aug 31, 2012 at 10:03 PM, Jon Blake > wrote: > > Querying column timestamp of view user_objects for tables, sequences and > > triggers

Re: Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-31 Thread Jon Blake
I've just dropped and re-created my user account with required privileges, and all has gone as expected. Table auth_permission has 18 rows. At the point where I'm prompted to create a superuser account, I made the mistake of resizing my terminal window, which resulted in exception EOFError

Re: What does this code do? Also, testing decorator via terminal?

2012-08-31 Thread Micky Hulse
On Fri, Aug 31, 2012 at 9:17 PM, Micky Hulse wrote: > I'd like to add: > if objects.status_code != 200: > return objects > ... which is found via this code: > Doh! After a bit of trial and error, I given up on trying to merge those two

Re: Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-31 Thread Ian Kelly
On Fri, Aug 31, 2012 at 10:03 PM, Jon Blake wrote: > Querying column timestamp of view user_objects for tables, sequences and > triggers appears to confirm my understanding of what base.py does. I'll drop > and recreate my user account, and try again. I'll advise how this

What does this code do? Also, testing decorator via terminal?

2012-08-31 Thread Micky Hulse
Hello, Silly question, but... What does this code do: if isinstance(objects, HttpResponse): return objects ... full code found here: I'd like to add: if objects.status_code != 200:

Re: admin save_model parameter 'change' is always true

2012-08-31 Thread Melvyn Sopacua
On 31-8-2012 11:16, armagan wrote: > I'm trying to use admin save_model method. I have a model called 'Project' > and in admin.py 'Project' has a method save_model. I added a project to my > admin panel then I try to save again without changing. But the parameter > 'change' of save_model

Re: Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-31 Thread Jon Blake
Thanks, Ian and Amyth, for your responses. I encountered the CREATE TRIGGER privilege issue early in my trials with Django with the Oracle database back end - Django propagated an Oracle "insufficient privileges" exception. That was quickly sorted by granting the required privilege to my user

Re: Provide a single text field (editable through admin panel) w/o using a whole model

2012-08-31 Thread Russell Keith-Magee
On Fri, Aug 31, 2012 at 10:53 PM, RK wrote: > I'd like to have the content of one tag in the homepage editable in > admin back-office, going through a whole model feels like an overkill, what > alternatives do I have ? > > If there's no alternative, is there a way to

Re: Using different ports in views?

2012-08-31 Thread Robert Steckroth
Well, I guess I will have to have apache proxy the outgoing request then. On Fri, Aug 31, 2012 at 7:49 PM, Robert Steckroth wrote: > Hello gang, I would like to have some of my django views send the > response to a different ports. > Is it possible to specify which

Re: ManyToManyField and get_or_create

2012-08-31 Thread Matt Long
Bump? Almost exactly 4 years later, I've ran into this exact same issue in Django 1.4. Attempting to use get_or_create through a ManyToMany field results in an integrity error if the object already exists but is not yet associated with the parent object. To use the OP's example, if a Tag with

Using different ports in views?

2012-08-31 Thread Robert Steckroth
Hello gang, I would like to have some of my django views send the response to a different ports. Is it possible to specify which port to use in the views? -- Bust0ut, Surgemcgee: Systems Engineer --- surgemcgee.com BudTVNetwork.com RadioWeedShow.com "Bringing entertainment to Unix" -- You

Re: Javascript Image Hollover In Django

2012-08-31 Thread coded kid
When I followed your tutorial, the images were reshaped only and when I place my mouse on any of the thumbnail images it won't display the large image. How can I go about it? On Friday, 31 August 2012 15:40:56 UTC+1, Amyth wrote: > > Hey, > > dun think this is really Django related, but still

Re: settings.py DEBUG crash

2012-08-31 Thread Rafael E. Ferrero
http://stackoverflow.com/questions/7241688/django-admin-css-missing 2012/8/31 Rafael E. Ferrero > maybe you are using the development server for serve statics files. > I had the same problem, in google i find the answer (if you copy all css > files from contrib.admin

Re: settings.py DEBUG crash

2012-08-31 Thread Rafael E. Ferrero
maybe you are using the development server for serve statics files. I had the same problem, in google i find the answer (if you copy all css files from contrib.admin in your media directory, django look for that files first) hope to help you 2012/8/31 Alex Bruno Cáceres

settings.py DEBUG crash

2012-08-31 Thread Alex Bruno Cáceres
Hello people! I'm learning Django and have a doubt. When I set DEBUG=False in settings.py, Dajngo Admin looses CSS theme, it crashes layout and show only HTML. Why it happens? I did something wrong? -- You received this message because you are subscribed to the Google Groups "Django users"

Re: Id error

2012-08-31 Thread Drvanon
> In your CountryForm, calling super(self.__class__)... might not be a > good idea. You should name the class, ie. > > super(CountryForm, self).save(*args, **kwargs) > Just did that, had no effect. > I'd also be wary of defining a class called 'Object', since python > already has

Re: Hard time debugging an strange problem

2012-08-31 Thread Alexis Roda
Al 31/08/12 18:26, En/na Tomas Neme ha escrit: I'd like to see some of your management commands' code. It smells somewhat like you're running a shell subprocess and not waiting for it to be done before going on to the next thing Thanks for taking the time to answer. I've thought on this. On

Re: How to package a django application

2012-08-31 Thread Amyth Arora
I see, your actual problem is not really related either to packaging a django app or to using custom script. are you using django's in built user model ? if yes, then you can do something like this. from django.contrib.auth import authenticate, login from django.shortcuts import

Re: How sitemaps used in the Django

2012-08-31 Thread mulianto
hi sitemaps is easy.. last day i implement it in only 2 hours read the documentation in django web. just follow the documentation ˆ⌣ˆ Sent from my iPhone On 31 Agt 2012, at 17:04, Mugdha wrote: > Please help me in generating site maps for app. which is in django. > --

Re: Django development running on 127.0.0.1:8000 not accessible from same machine

2012-08-31 Thread Nandakumar Chandrasekhar
Chris, Thank you for your email. I had cleared my cache quite a number of times before. What is interesting is that if I start a new Django 1.4.1 the browser finds the server running at 127.0.0.1:8000 and says it worked. The application I am working on however still redirects to

Re: Hard time debugging an strange problem

2012-08-31 Thread Alexis Roda
Hi again, doing some more testing I've realized that the problem happens because the .py and .pyc files are out of sync. My guess is that the .py files are modified so quickly that the timestamp does not change and a recompilation is not triggered. After some research I've found that the

Re: Hard time debugging an strange problem

2012-08-31 Thread Tomas Neme
I'd like to see some of your management commands' code. It smells somewhat like you're running a shell subprocess and not waiting for it to be done before going on to the next thing -- "The whole of Japan is pure invention. There is no such country, there are no such people" --Oscar Wilde

Re: Django development running on 127.0.0.1:8000 not accessible from same machine

2012-08-31 Thread Chris Lawlor
Oops that should have been addressed to nav, sorry On Friday, 31 August 2012 11:57:03 UTC-4, Chris Lawlor wrote: > > Jirka, > > Is your app possibly doing a 301 (Permanent) redirect to www.* ? Or > possibly some other app you were working on recently? Browsers will cache > 301 redirects and

Re: Django development running on 127.0.0.1:8000 not accessible from same machine

2012-08-31 Thread Chris Lawlor
Jirka, Is your app possibly doing a 301 (Permanent) redirect to www.* ? Or possibly some other app you were working on recently? Browsers will cache 301 redirects and automatically do the redirect WITHOUT making the initial request to 127.0.0.1, so if some project you were working on issued

Re: Id error

2012-08-31 Thread Paul Backhouse
In your CountryForm, calling super(self.__class__)... might not be a good idea. You should name the class, ie. super(CountryForm, self).save(*args, **kwargs) I'd also be wary of defining a class called 'Object', since python already has 'object' as part of its "new style" classes. Paul On

Re: How sitemaps used in the Django

2012-08-31 Thread Phil
nearly forgot, also in urls.py... (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}), On Friday, August 31, 2012 10:04:26 AM UTC+1, Mugdha wrote: > > Please help me in generating site maps for app. which is in django. > -- You received this message because

Re: How sitemaps used in the Django

2012-08-31 Thread Phil
Hi Mugdha, First add 'django.contrib.sitemaps' to your installed apps. Then create a file "sitemap.py" in your project root with something like from django.core.urlresolvers import reverse from django.contrib.sitemaps import Sitemap from blog.models import Entry class

Re: Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-31 Thread Ian
On Friday, August 31, 2012 12:10:54 AM UTC-6, Amyth wrote: > > Hey Jon, > > I guess this is because of a bug in django. Django already has a open > ticket for this bug. Check it out > here > . > > As described in that ticket, the reason for the

setting up Django Compressor

2012-08-31 Thread Phil
Hi, Django1.4, Python2.7 I am currently trying to get django compressor to work locally, I installed django_compressor via pip install earlier, added it to my installed apps. Here is a copy of my base template {% load i18n %} {% load compress %}

Id error

2012-08-31 Thread Drvanon
Hello django-ers, Today I had a good dream in which I though I fixed something in my bug-magnet. This was the outcome: # The Error Environment: Request Method: POST Request URL: http://127.0.0.1:8000/main Django Version: 1.4.1 Python Version: 2.7.3 Installed Applications:

Re: brute force protection

2012-08-31 Thread brian
For my long term plans I want it to be app based. To start with I want to give 3 tries and then lockout. For my use case this will work. Long term I like to add IP and move over to a captcha after 3 tries and a delay like 2^tryNumber. Brian -- You received this message because you are

Provide a single text field (editable through admin panel) w/o using a whole model

2012-08-31 Thread RK
I'd like to have the content of one tag in the homepage editable in admin back-office, going through a whole model feels like an overkill, what alternatives do I have ? If there's no alternative, is there a way to properly limit the number of elements to 1 in the admin panel ? Any help

Provide editable single text field (through admin) w/o using a whole model

2012-08-31 Thread Romain Knezevic
I'd like to have a single text field that stands for the text in the homepage, and editable in the admin panel, what way would you do this ? Having a whole class for this seems like a waste to me, except if there's maybe a way to set/limit the number of entries properly in the model ? (I'm

Re: Javascript Image Hollover In Django

2012-08-31 Thread Amyth Arora
Hey, dun think this is really Django related, but still i created a jquery example for you, check it http://jsfiddle.net/TjUtq/ -- Thanks & Regards Amyth [Admin - Techstricks] Email - aroras.offic...@gmail.com, ad...@techstricks.com Twitter - @a_myth_

Re: coding urls in templates

2012-08-31 Thread Michael Thon
Hi Amyth- That is exactly what I needed. Thanks. I'm now updating all my views. - Mike On Aug 31, 2012, at 8:44 AM, Amyth Arora wrote: > Hey Mike, > > I think i understand what you are trying to achieve now. You can basically > name your urls and then call the

Re: How sitemaps used in the Django

2012-08-31 Thread Amyth Arora
Hey Mugdha, Have you had a look at django sitemap framework ? 1. add django.contrib.sitemaps to INSTALLED_APPS and then syncdb 2. add (r'^sitemap\.xml$', 'django.contrib.sitemaps.views.sitemap', {'sitemaps': sitemaps}) to urls.py 3.

Re: Javascript Image Hollover In Django

2012-08-31 Thread kahara
I don't think this is really related to Django? Anyway, if the selectors '.slides', '.slideshow' don't match anything, this will not work. Try wrapping the image elements in a div with class "slideshow". See http://jquery.malsup.com/cycle/basic.html for inspiration (view source). Joni

Re: How to package a django application

2012-08-31 Thread Muhammed Salman
Thanks Amyth, Can you please see my reply to Dennis. I have further explained it there what i am exactly looking for ... On Friday, August 31, 2012 9:00:06 AM UTC+3, Amyth wrote: > > Using pure python scripts with django is not all that difficult, as django > itself is a python package. So ,

Re: How to package a django application

2012-08-31 Thread Muhammed Salman
HI, Thanks for the reply. Maybe i should have gone into more details on what i have to actually do. I am sorry for not being clear and hence you kept guessing. The app requirments are simple it requires that the client is shown a user id and password field and if the user id and password

Javascript Image Hollover In Django

2012-08-31 Thread coded kid
When a user place his mouse or click on any image thumbnails, I want the particular thumbnail image to display in large size above the set of thumbnails images on the same page in my django template. I tried the below Javascript code but it's not working. I'm a noob in javascript. If there's any

Re: New to Django, Admin Page not Loading

2012-08-31 Thread maha
urlpatterns = patterns('', # Examples: # url(r'^$', 'budgetmanager.views.home', name='home'), # url(r'^budgetmanager/', include('budgetmanager.foo. urls')), # Uncomment the admin/doc line below to enable admin documentation: * uncomment* # url(r'^admin/',

How sitemaps used in the Django

2012-08-31 Thread Mugdha
Please help me in generating site maps for app. which is in django. -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/ZLpW-xn_TEYJ. To post to this group,

Re: New to Django, Question about Admin Page

2012-08-31 Thread maha
> >uncomment the admin url: url(r'^admin/', include(admin.site.urls)), > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/1vTsmbJ_k-YJ. To post to

Re: new to django

2012-08-31 Thread maha
> > thanks kurtis >> > -- You received this message because you are subscribed to the Google Groups "Django users" group. To view this discussion on the web visit https://groups.google.com/d/msg/django-users/-/Iw461RspM4sJ. To post to this group, send email to

admin save_model parameter 'change' is always true

2012-08-31 Thread armagan
Hi, I'm trying to use admin save_model method. I have a model called 'Project' and in admin.py 'Project' has a method save_model. I added a project to my admin panel then I try to save again without changing. But the parameter 'change' of save_model method is always 'true'. Why? Can you help

Re: brute force protection

2012-08-31 Thread Amyth Arora
I agree to David, it is much better to do this at a server level instead of application level. If you want your app to take care of it, i think django-axes is the best solution, you'll just need to customize a few bits according to your needs. Even

Re: people.djangoproject.com broken

2012-08-31 Thread Timothy Makobu
Strange. Well it does say it informed the admin of the error (see screenshot) That stack-trace should tell the dev just what's happening. On Fri, Aug 31, 2012 at 9:52 AM, Amyth Arora wrote: > Have you tried visiting the website using a proxy ? > > > On Fri, Aug 31,

Re: people.djangoproject.com broken

2012-08-31 Thread Amyth Arora
Have you tried visiting the website using a proxy ? On Fri, Aug 31, 2012 at 12:22 AM, creecode wrote: > Hello Timothy, > > I just tried going to the login webpage and had no problem. I'm not > registered on that website so my experience may be somewhat different. > > On

Re: About the Django URL tag {% url %}……

2012-08-31 Thread Amyth Arora
Paste the code to your urls.py and highlight which urls are not working. On Thu, Aug 30, 2012 at 8:07 PM, Nikolas Stevenson-Molnar < nik.mol...@consbio.org> wrote: > Also, your URL patters should start with "^" like your first one does. > And unless you need the older version, I would upgrade to

Re: Upload Image and pdf file

2012-08-31 Thread Amyth Arora
Do you actually see anyfiles uploaded under static/finale if you manually browse the folder? or is it empty ? On Thu, Aug 30, 2012 at 7:54 PM, Dott. Tegagni Alessandro < tefari@gmail.com> wrote: > I have a project created with cms Django, and in this project i must > upload a image and pdf

Re: coding urls in templates

2012-08-31 Thread Amyth Arora
Hey Mike, I think i understand what you are trying to achieve now. You can basically name your urls and then call the url template tag in the templates with the url name as follows, this way you will not break any urls in your template if you simply move your app to a new location. Example:

Re: Syncdb Error With Oracle Database - IntegrityError Exception

2012-08-31 Thread Amyth Arora
Hey Jon, I guess this is because of a bug in django. Django already has a open ticket for this bug. Check it out here . On Fri, Aug 31, 2012 at 7:17 AM, Jon Blake wrote: > Just discovered Django and trying out the Django 1.4

Re: coding urls in templates

2012-08-31 Thread Michael Thon
the root directlry of my domain is hosting wordpress, which I'm using to develop the landing pages: www.zetawrite.com (I know, it still needs a lot of work). The app itself will only be available to logged in users so I thought that the easiest way to deploy it would be to run it in a