Re: I really about to give up Django

2013-09-02 Thread Mike Dewhirst
On 2/09/2013 11:58pm, Andre Terra wrote: /Non sequitur/. Obscure variable names can happen regardless of the coder's language choice, ... which reminds me that I need to refactor more aggressively to make sure my variables and especially column names (and verbose_name) more closely match/ref

Re: I really about to give up Django

2013-09-02 Thread Andre Terra
*Non sequitur*. Obscure variable names can happen regardless of the coder's language choice, and most definitely do not encourge the use of one's native tongue. As others have said in the thread, if you're writing *in English* to ask for help, you should probably code in English as well. It's not

Re: I really about to give up Django

2013-09-02 Thread Tom Evans
On Sat, Aug 31, 2013 at 4:33 AM, Aaron C. de Bruyn wrote: > Feel free to use whatever names you'd like in models. > > def Ikhouvanjou(models.Model): > #whatever field names you want... You can use whatever language or naming scheme you like for your code, but if you want to ask for help from pe

Re: I really about to give up Django

2013-08-31 Thread Gerd Koetje
if u want someone else to understand use english -- 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

Re: I really about to give up Django

2013-08-30 Thread Aaron C. de Bruyn
Feel free to use whatever names you'd like in models. def Ikhouvanjou(models.Model): #whatever field names you want... -A On Fri, Aug 30, 2013 at 6:23 PM, Dan Gentry wrote: > > Just my opinion, but I see no reason to use English names in models. Use > whatever you wish. English speaking p

Re: I really about to give up Django

2013-08-30 Thread Dan Gentry
Just my opinion, but I see no reason to use English names in models. Use whatever you wish. English speaking programmers have been using cryptic variable names for decades. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from

Re: I really about to give up Django

2013-08-23 Thread Mark Furbee
I see. I don't understand how this works: {{ itens.instance.idproduto.codigobarra }} when this doesn't: {{ itens.instance.idproduto.idmercadoria.referencia }} Can you post your template code? On Fri, Aug 23, 2013 at 10:13 AM, Fellipe Henrique wrote: > form.instance is "Pedido" model, not "It

Re: I really about to give up Django

2013-08-23 Thread Fellipe Henrique
form.instance is "Pedido" model, not "ItensPedido". My "ItensPedido" has "idproduto" not my "Pedido". and all idproduto has idmercadoria, it a required field, never, never go null`s this field. Cheers, Em sexta-feira, 23 de agosto de 2013 12h15min15s UTC-3, Mark escreveu: > > Are you sure the

Re: I really about to give up Django

2013-08-23 Thread Mark Furbee
Are you sure the idmercadoria is not None on that idproduto record? {{ form.instance.idproduto.**idmercadoria }} Does this display anything? How about {{ form.instance.idproduto }}? If these don't display, verify the records in your database. In Django templates, if something is None or does not

Re: I really about to give up Django

2013-08-22 Thread Fellipe Henrique
No, nothing displayed.. Em quinta-feira, 22 de agosto de 2013 13h38min04s UTC-3, Mark escreveu: > > Try dropping the .value from referencia. Like {{ > form.instance.idproduto.idmercadoria.referencia }}. Does this work? > > > On Thu, Aug 22, 2013 at 9:35 AM, Fellipe Henrique > > > wrote: > >> I

Re: I really about to give up Django

2013-08-22 Thread Fellipe Henrique
Hi Andre, I just post my current models, the first model it`s just example. My real model is this: http://pastebin.com/w2TmyLzt as a posted in my last email. As I told, if I get the "first" FK value works.. in my real problem, link above, I try to get "Mercadoria" values, from my "ItensPedid

Re: I really about to give up Django

2013-08-22 Thread Andre Terra
For the record, it's considered a good coding practice to keep everything in English, including classes, functions and variables. This way it's easier for people to help you. Secondly, your Filhos model should really just be Filho. Finally, don't use obscure names like Brinq. Instead, prefer the

Re: I really about to give up Django

2013-08-22 Thread Mark Furbee
> Fellipe > > Em quinta-feira, 22 de agosto de 2013 12h19min31s UTC-3, Tom Evans > escreveu: > >> On Thu, Aug 22, 2013 at 3:28 PM, Fellipe Henrique >> wrote: >> > Hi guys, >> > >> > I really about to give up from Django, >> &

Re: I really about to give up Django

2013-08-22 Thread Fellipe Henrique
I tried again.. and work if I have just 1 FK, if I have more then one, doesn't work, like this: I have this models: Itens -> produto -> mercadoria itens: idproduto = FK (produto) produto: idmercadoria = FK(mercadoria) mercadoria: referencia = Char I try to get "referencia" field, as you t

Re: I really about to give up Django

2013-08-22 Thread Mark Furbee
Try dropping the .value from referencia. Like {{ form.instance.idproduto.idmercadoria.referencia }}. Does this work? On Thu, Aug 22, 2013 at 9:35 AM, Fellipe Henrique wrote: > I tried again.. and work if I have just 1 FK, if I have more then one, > doesn't work, like this: > > I have this models

Re: I really about to give up Django

2013-08-22 Thread Fellipe Henrique
22 de agosto de 2013 12h19min31s UTC-3, Tom Evans escreveu: > > On Thu, Aug 22, 2013 at 3:28 PM, Fellipe Henrique > > > wrote: > > Hi guys, > > > > I really about to give up from Django, > > So should I bother giving you the advice you asked for, sinc

Re: I really about to give up Django

2013-08-22 Thread Tom Evans
On Thu, Aug 22, 2013 at 3:28 PM, Fellipe Henrique wrote: > Hi guys, > > I really about to give up from Django, So should I bother giving you the advice you asked for, since you are just going to give up on Django? > because? I try to do something simple > and I looking, loo

Re: I really about to give up Django

2013-08-22 Thread Fellipe Henrique
affaele Salmaso escreveu: > > {{ form.brinq.descricao }} ? > > On Thu, Aug 22, 2013 at 4:28 PM, Fellipe Henrique > > > wrote: > > Hi guys, > > > > I really about to give up from Django, because? I try to do something > simple > > and I loo

Re: I really about to give up Django

2013-08-22 Thread Raffaele Salmaso
{{ form.brinq.descricao }} ? On Thu, Aug 22, 2013 at 4:28 PM, Fellipe Henrique wrote: > Hi guys, > > I really about to give up from Django, because? I try to do something simple > and I looking, looking around the internet and don't find anything about > this... try this

I really about to give up Django

2013-08-22 Thread Fellipe Henrique
Hi guys, I really about to give up from Django, because? I try to do something simple and I looking, looking around the internet and don't find anything about this... try this simple example: http://pastebin.com/epazpBcZ I just want to get "descricao" field, from "B

Re: About to give up!!!

2008-02-09 Thread Ned Batchelder
I agree with Marty: your static URL pattern is never being used. And the log file snippet you gave had the big clue in it: [09/Feb/2008 11:58:42] "GET / HTTP/1.1" 200 39 [09/Feb/2008 11:58:42] "GET /site_media/my_image.jpg HTTP/1.1" 200 39 The key thing here is the "39". That's the number of by

Re: About to give up!!!

2008-02-09 Thread Karen Tracey
On Feb 9, 2008 2:29 PM, Marty Alchin <[EMAIL PROTECTED]> wrote: > > On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote: > > Any way, here is my current urls.py document: > > > > from django.conf.urls.defaults import * > > from django.conf import settings > > from btaylor_design.views import home

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
YOU, MY FRIEND, ARE THE MAN. I can't thank you enough. A tear almost ran down my cheek. Kindest regards, Brandon On Feb 9, 1:29 pm, "Marty Alchin" <[EMAIL PROTECTED]> wrote: > On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote: > > > Any way, here is my current urls.py document: > > > from dja

Re: About to give up!!!

2008-02-09 Thread Marty Alchin
On 2/9/08, Brandon Taylor <[EMAIL PROTECTED]> wrote: > Any way, here is my current urls.py document: > > from django.conf.urls.defaults import * > from django.conf import settings > from btaylor_design.views import home > > urlpatterns = patterns('', > (r'', home), > ) Don't bother reading an

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
BTW, I moved the images directory into the root of the website instead of at 'btaylor_Design/public/images', now it's just 'btaylor_design/ images' to eliminate a path. I reinstalled Python 2.5.1 and upgrade Django to 0.97. I can import Django from the command line in Python, and it appears to b

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
Hello Ian, I have set permissions for all groups and users to read/write for the entire project folder, including all enclosed items. Thanks, Brandon On Feb 9, 12:48 pm, "Ian Lawrence" <[EMAIL PROTECTED]> wrote: > Ola > what are the permissions on the image file? > regards > ian > > -- > always

Re: About to give up!!!

2008-02-09 Thread Ian Lawrence
Ola what are the permissions on the image file? regards ian -- always code as if the person who ends up maintaining it will be a violent psychopath who knows where you live. http://ianlawrence.info --~--~-~--~~~---~--~~ You received this message because you are s

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
Yes, here is my settings file: - - - import os.path DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', '[EMAIL PROTECTED]'), ) MANAGERS = ADMINS DATABASE_ENGINE = '' # 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'ado_mssql'. DATABASE_NAME = ''

Re: About to give up!!!

2008-02-09 Thread Bret W
Do you have DEBUG set to True in your settings.py? I don't understand why it would return a status code of 200 (OK) if it didn't fetch and serve the file. Have you tried a different image? --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: About to give up!!!

2008-02-09 Thread Brandon Taylor
uit the server with CONTROL-C. [09/Feb/2008 11:58:42] "GET / HTTP/1.1" 200 39 [09/Feb/2008 11:58:42] "GET /site_media/my_image.jpg HTTP/1.1" 200 39 Ideas? Thank you, Brandon On Feb 9, 10:59 am, Michael Hipp <[EMAIL PROTECTED]> wrote: > Brandon Taylor wrote: > > Hi ev

Re: About to give up!!!

2008-02-09 Thread Michael Hipp
Brandon Taylor wrote: > Hi everyone, > > I'm just about to give up on Django. I can't even get it to load a > simple jpeg using the built-in server. > > Here is my directory structure: > > '/Users/bt/django_projects' is where all of my Django proje

Re: About to give up!!!

2008-02-09 Thread Bret W
Brandon- I believe that the reason it's not serving the file is because your url pattern does not give a name to the string that you're capturing (the .* in your pattern). Django expects this to be given the name "path," and in Python regular expressions, you do that with the syntax: (?P.*) Tr

About to give up!!!

2008-02-09 Thread Brandon Taylor
Hi everyone, I'm just about to give up on Django. I can't even get it to load a simple jpeg using the built-in server. Here is my directory structure: '/Users/bt/django_projects' is where all of my Django projects exist /btaylor_design settings.py, etc /pu