Using Redshift or DynamoDB with Django

2014-07-16 Thread Ankit Arora
Does anyone have any experience with using Django with a Redshift or DynamoDB database? Any insight on available connectors and past experiences (good or bad) would be brilliant. Thanks a lot. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Google App Engine / Django / Django-nonrel Best Practices

2014-07-16 Thread Adam Simon
Anybody? -- 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, send email to django-users@googlegrou

Re: sort by multiple fields using admin_order_field

2014-07-16 Thread alghafli
Hello Jorge Thank you for the reply. admin_order_field can 1 and only 1 field. However, I want to sort by multiple fields. Something like this: function_name.admin_order_field = [ 'topic id', 'book id' ] Now the previous line does not work but I wrote it just to show the idea. if I choose to so

Re: Django Talent Needed!

2014-07-16 Thread Hardik Sottany
Hello sir I am working as python developer in Fafadia Tech and serching some freelancing opportunies you can try me i know i will be benificial for your institution On Wednesday, July 16, 2014 8:19:19 PM UTC+5:30, Shawnblue wrote: > > Hi Django Community! > My name is Shawn, and we [Smarter Age

Re: Form error messages not displayed

2014-07-16 Thread sarfaraz ahmed
> > I tried {{form.errors}} in template.. but it still does not show up. When > I used the Werkeuq and print form it see the precise error in form. Not > sure what i am doing wrong. Regards, Sarfaraz Ahmed -- You received this message because you are subscribed to the Google Groups "Djang

Errors Using Pip In Powershell to Download Django

2014-07-16 Thread Malik Rumi
Yesterday I tried to get the 1.7rc1 and got the error 'file contains no section headers'. I assumed this was because it was a tarball, and after looking around gave up for the night. Tonight I decided to just get 1.6.5. But to my surprise, I got the same error. I have no control over putting sec

Re: sort by multiple fields using admin_order_field

2014-07-16 Thread Jorge Andrés Vergara Ebratt
Hey, it can be done, it's something like this: In the Model Class where you created the function you are going to add: function_name.admin_order_field = 'The field to order' 2014-07-16 13:25 GMT-05:00 alghafli : > Hello, > I made a library application. I have books each with its own id numbe

creating parent record as part of creating the child record

2014-07-16 Thread Lee Hinde
I need help understanding the flow of saving an object when using Model Forms and Create Views. I am using a CreateView class and a Model Form to create the line item of an invoice and the parent invoice as part of the same user process. - It's one step as far as the user is concerned. The parent

Re: Did Ubuntu 14.04 or Linux Mint 17 break your Django project files?

2014-07-16 Thread Pepsodent Cola
Thanks, it was a Django 1.6 issue. Problem solved now. On Wednesday, July 16, 2014 10:53:42 PM UTC+2, Pepsodent Cola wrote: > > Hi, > I have been learning and developing my first Django project in Linux Mint > 14 for about 2 years. This month I moved my Django project files to Linux > Mint

Re: Form error messages not displayed

2014-07-16 Thread Tom Evans
On Wed, Jul 16, 2014 at 10:26 PM, sarfaraz ahmed wrote: > I am trying to display form.erros. I am using bootstrap modal and using ajax > form submit to send data async. Everything works fine... I can see the error > messages returned in code. But it automatically goes to default error pages > of d

Re: how can i make django url system acept the following url http://www.yoursite.com/notifications?topic=payment&id=identificador-de-notificación-de-pago

2014-07-16 Thread Tom Evans
On Wed, Jul 16, 2014 at 10:24 PM, Matias Araujo wrote: > Hi all! im devoloping a site in django and i need to recive an http request > with an url of this type: > > http://testsystemser.cloudapp.net/pago/index?topic=payment&id=identificador-de-notificación-de-pago > but i cant make it match with m

Re: Django Admin DB Error only when trying to delete an inserted record delete.

2014-07-16 Thread G Z
> > upon further investigation I found that inspectdb on the production > database only will output a models.py for the django tables, I need it to > output it for the entire schema like it did on the development database, > to prevent unessecary changes the premissions of the django user are r

Re: how can i make django url system acept the following url http://www.yoursite.com/notifications?topic=payment&id=identificador-de-notificación-de-pago

2014-07-16 Thread alghafli
You should stop at /pago/index the fields after ? are accessible by the GET dictionary. I did something like this and I used (r'^search/$') expression. when I get a url like: http://testsystemser.cloudapp.net/*search*/?topic=payment&id=identificador-de-notificación-de-pago I do something like th

Re: Did Ubuntu 14.04 or Linux Mint 17 break your Django project files?

2014-07-16 Thread Alasdair Nicol
Hi, On 16/07/14 21:53, Pepsodent Cola wrote: Hi, I have been learning and developing my first Django project in Linux Mint 14 for about 2 years. This month I moved my Django project files to Linux Mint 17. When I run my unit tests then I get this error, which I don't remember having when I was

how can i make django url system acept the following url http://www.yoursite.com/notifications?topic=payment&id=identificador-de-notificación-de-pago

2014-07-16 Thread Matias Araujo
Hi all! im devoloping a site in django and i need to recive an http request with an url of this type: http://testsystemser.cloudapp.net/pago/index ?topic=payment&id=identificador-de-notificación-de-pago but i cant make it match with my urlconf in my project, i try with the following ur: url(r'p

Form error messages not displayed

2014-07-16 Thread sarfaraz ahmed
I am trying to display form.erros. I am using bootstrap modal and using ajax form submit to send data async. Everything works fine... I can see the error messages returned in code. But it automatically goes to default error pages of django when form.is_valid returns false. When I print form in

Re: Did Ubuntu 14.04 or Linux Mint 17 break your Django project files?

2014-07-16 Thread Adam Stein
IntegrityError is at the database level (not the OS). Shouldn't have anything to do with the OS specifically. Has the database you are using changed? On Wed, 2014-07-16 at 13:53 -0700, Pepsodent Cola wrote: > Hi, > I have been learning and developing my first Django project in Linux > Mint 14 fo

Re: Did Ubuntu 14.04 or Linux Mint 17 break your Django project files?

2014-07-16 Thread Bill Freeman
I make it a point to never use a python build that comes from a .deb for any real development. The OS vender may require certain python features for its management scripts, but I don't like my development tools changing out from under me. Build yourself a python from source, putting it some where

Did Ubuntu 14.04 or Linux Mint 17 break your Django project files?

2014-07-16 Thread Pepsodent Cola
Hi, I have been learning and developing my first Django project in Linux Mint 14 for about 2 years. This month I moved my Django project files to Linux Mint 17. When I run my unit tests then I get this error, which I don't remember having when I was testing code in Linux Mint 14. *IntegrityErr

Django Template Dir Question

2014-07-16 Thread G Z
My project structure goes *holon* * -holon* -settings.py -etc * -portal** -App name* * -static* css / images *-templates* -main site template files views.py urls.py etc * -templates* base.html

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-16 Thread G Z
Thanks, I eventually solved it by using django to generate the models i believe it was because i was defining the db_column in the primary key and django said whatever, so when inspectdb built the models file it took that out and it started to work. On Wednesday, July 16, 2014 12:28:27 PM UTC-6

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-16 Thread Frank Bieniek
Hi there, you are telling django, you know what you are doing via managed = False -> no batteries included, please read the details here https://docs.djangoproject.com/en/dev/ref/models/options/ There are great books out there explaining django from other perspectives than the online documentati

sort by multiple fields using admin_order_field

2014-07-16 Thread alghafli
Hello, I made a library application. I have books each with its own id number (different from the autofield added by django). the book has several foreign keys each with its own id. I wrote a function that returns a long id number in string format consisting of the book id number and id numbe

Re: Django Models PrimaryKey not incrimenting I dont understand this framework and the documentation is poorly written.

2014-07-16 Thread G Z
so I added a db trigger in oracle and it still said the same thing when ever I tried to save the new addition. Also whenever I try to go to an existing vm the manytomany field throws an exception that table or view doesn't exist but when I goto add new it doesnt and the correct field is display

deleted_forms and invalid formset

2014-07-16 Thread Bartek Grzys
Hi, Please take a look at https://github.com/django/django/blob/master/django/forms/formsets.py#L204 if not self.is_valid() or not self.can_delete: Anyone can give me rationale behind condition with is_valid? Shouldn't deleted_forms be available also in case when formset is invalid? Regards, B

Django Talent Needed!

2014-07-16 Thread Shawnblue
Hi Django Community! My name is Shawn, and we [Smarter Agent] have just started to migrate our platform to Python/Django. We could not be happier with our decision and we are excited to get involved with the Django community. We are looking for some freelance/full time developers to help us with

How can I create models which only required during tests in Django 1.7c1?

2014-07-16 Thread Alisue Lambda
Hi all. Well today I tried Django 1.7c1 with my program and found that the previous testing strategy seems not work. I have several models which only required during tests. Before Django 1.7, I could create these kind of temporary models by defining these in `app/tests/models.py` with `app_la

Re: django template

2014-07-16 Thread Andreas Kuhne
Hi, Sure, but I won't always be able to answer :-) Regards, Andréas 2014-07-16 13:49 GMT+02:00 ngangsia akumbo : > Thanks bro for this inside , can i always contact u personally if i had >> some issues please. >> > > I am from western Africa - Cameroon. > > Thanks in advance > > -- > You rece

Re: Django 1.7c1 app without models data migrations

2014-07-16 Thread j1z0
Are you sure you have your django app in your settings.INSTALLED_APPS and your django app has a migrations folder underneath it with an __init__.py file? I'm pretty sure that should be all you need to have in place so you can run a migration. Cheers, Jeremy On Tuesday, 15 July 2014 22:20:57

Re: django template

2014-07-16 Thread ngangsia akumbo
> > Thanks bro for this inside , can i always contact u personally if i had > some issues please. > I am from western Africa - Cameroon. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and sto

Re: django template

2014-07-16 Thread ngangsia akumbo
> > Thanks bro for this inside , can i always contact u personally if i had > some issues please. > I am from western Africa - Cameroon. Thanks in advance -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and sto

Re: django template

2014-07-16 Thread Andreas Kuhne
Hi again, You can create separate base files, but you will have to save each under different names. For example if you had an app called website, you could have a website_base.html that has {% extends "base.html" %} in it. As to how to link them together? What do you mean? Each app should contai

Re: django template

2014-07-16 Thread ngangsia akumbo
After creating these app with their html files , how do i link them together ? I am sorry if the question is stupid On Wednesday, July 16, 2014 10:11:45 AM UTC+1, Andréas Kühne wrote: > > Hi, > > All of your templates are available in all of your apps. So you can use a > template from one app in

Re: django template

2014-07-16 Thread ngangsia akumbo
ok can i create a seperate base.html in other app and link that app to the main base.html file. because after creating all these html files which links back to the main base.html, how would i link them? Thanks On Wednesday, July 16, 2014 10:11:45 AM UTC+1, Andréas Kühne wrote: > > Hi, > > All

Re: Django-admin set foreign key to Null for inlines selected item instead of delete

2014-07-16 Thread Aeh. ABID
This is not for my use case, it was about setting to null foreign key when selecting inline items to be deleted On Tuesday, July 15, 2014 1:38:07 PM UTC+1, ROHITH KUMAR Miryala wrote: > > > >> >> B-id=models.ForeignKey('B',on_delete=models.SET_NULL) >> > -- You received this message because you

Re: django template

2014-07-16 Thread Andreas Kuhne
Hi, All of your templates are available in all of your apps. So you can use a template from one app in another app (our website is created this way). In other words you can continue to use the same base.html for the second app as well. Regards, Andréas 2014-07-16 9:47 GMT+02:00 ngangsia akumbo

django template

2014-07-16 Thread ngangsia akumbo
Good Morning Django Users I have a question. I am building a website for django and this site will consist of separate apps. I have created the first app already with a base.html file. OK, when i am creating the second app will it inherit from the base.html template or i will have to create a s