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
*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
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
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
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
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
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
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
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
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
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
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
> 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,
>>
&
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
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
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
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
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
{{ 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
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
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
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
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
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
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
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
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
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 = ''
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
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
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
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
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
33 matches
Mail list logo