Please help - FCGI installation woes

2006-07-11 Thread Carlos Yoder
for the time to read this, and if you can help me out, you don't know how big of a Django evangeliser you'll find in me! (at least in Slovenia, where I'm currently based) =) Best regards and thanks a million, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~

Re: Please help - FCGI installation woes

2006-07-11 Thread Carlos Yoder
Gábor, I'm reading Jeff's tutorial, and I believe I'm seeing the light at the end of the tunnel. Will update later, thank you! On 7/11/06, Gábor Farkas <[EMAIL PROTECTED]> wrote: > > Carlos Yoder wrote: > > Hello guys, > > > > I'm having a

Are choices supported on DateField?

2006-07-11 Thread Carlos Yoder
Hello there, Is there a way to constrain a DateField with a choices tuple? I want the admin to restrict dates to valid months and years only. Maybe I should make this happen with two different IntegerFields? Best regards, -- Carlos Yoder http://carlitosyoder.blogspot.com

Alternative to PIL (Python Imaging Library)?

2006-07-12 Thread Carlos Yoder
g a lot of warnings and dying miserably. Bluehost¶ support guys haven't been helpful yet, so... I turn to you. Is there a way around PIL? Can Django use another kind of library? If not, has anyone got around this? Maybe by getting a precompiled Linux PIL? Thanks a lot! -- Ca

Re: Alternative to PIL (Python Imaging Library)?

2006-07-12 Thread Carlos Yoder
o my box in Bluehost. Can anythone think of an alternative, short of telling support to install it themselves? Regards, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Carlos Yoder
;s fault, but related to sysadmins' ignorance). We *really* need to think of a "providing Django support" tutorial for sysadmins, as we discussed briefly in the last few days... otherwise a lot of people would be scared away from Django because it's "too hard"

Re: Django and MySQLdb on Bluehost

2006-07-13 Thread Carlos Yoder
Hey Steve, seems like I'm not the only one struggling with Django+Bluehost. If you manage to get ImageFields running on your models, let me know... I can't make PIL work. Regards, Carlos On 7/13/06, Steve <[EMAIL PROTECTED]> wrote: > > Nevermind, I figured it out. Gosh

Re: Alternative to PIL (Python Imaging Library)?

2006-07-13 Thread Carlos Yoder
Aidas, thanks for the great tip! I'll get cracking. Best regards, On 7/13/06, Aidas Bendoraitis <[EMAIL PROTECTED]> wrote: > > Carlos, > > If you need to get started quickly, you can use FileField instead of > ImageField, so the PIL won't be necessary. The requi

Re: admin ordering question

2006-07-13 Thread Carlos Yoder
.opis) class Admin: list_filter = ['znamka']# sidebar with handy filters class Meta: verbose_name_plural = "Modeli" ordering = [&#

Re: admin ordering question

2006-07-13 Thread Carlos Yoder
verbose_name_plural = "Modeli" ordering = ['znamka','opis'] Like a charm, it works. =) On 7/13/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > >> class Item(models.Model): > > > name = models.Charfield(maxlengt

Please fix my ugly code

2006-07-13 Thread Carlos Yoder
ist, 'selected_model_id':selected_model_id, 'selected_gorivo_id':selected_gorivo_id, 'results': results }) There must be a better way of doing this, right? I'm a terrible newbie both at Python and Django -

Re: Django hosting

2006-07-13 Thread Carlos Yoder
www.no-ip.com ! On 7/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I have not static ip :( > > > > > -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subs

Re: Please fix my ugly code

2006-07-13 Thread Carlos Yoder
this, I really appreciate it!!! On 7/13/06, Jorge Gajon <[EMAIL PROTECTED]> wrote: > > Hi again Carlos, > > I suggested this change in your code: > > results = Vozilo.objects.all() > > if selected_model_id != 0: > > results = results.filter(mode

Extending pluralize?

2006-07-14 Thread Carlos Yoder
eady faced this? Best regards and thanks in advance, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
g like this [snip] [snip] [snip] > And then adding new words that I need to form as necessary. Interesting... it was kind as I though it'd be. With all my newbie questions being answered as I thought they would, Django is becoming a much warmer place :-) Spasiva! =)

Can I use HAVING clause on a query?

2006-07-14 Thread Carlos Yoder
nybody done sth like this before? Any clues? Best regards, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, s

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
a universal way of doing this -- languages are the very definition of diversity! :-P What do you think, Russell? -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "D

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
#x27;re stuck with a dictionary? Honestly I never saw a proper implementation of a pluralize function, that was universal enough... can we get a shot at this, at all? OTOH, the dictionary approach Ivan mentioned would still have to be in place, since nouns of different genders

Re: Extending pluralize?

2006-07-14 Thread Carlos Yoder
Russel, I wrote my last comment before seeing yours. Just so that you know :-) On 7/14/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > > > The problem is that it's not 1, 2, 3, 4 and others :-). For Russian it's: > > > > > > 1 form, if it ends with 1 but

Re: Extending pluralize?

2006-07-16 Thread Carlos Yoder
gable into contrib? Thanks for all the feedback, and I'll get back to work :-) -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gro

ifequal template problem

2006-07-17 Thread Carlos Yoder
I'm sure this is a very common task (expanding admin choices), isn't it? Best regards and big thanks, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups &

Re: ifequal template problem

2006-07-17 Thread Carlos Yoder
Forgot to say, I have the same logic working with no problem, but for a CharField, so this issue must be related to the field's datatype... On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > Hello there, > > I'm using a object_detail generic view to display some da

Re: Filter on count of ManyToManyField

2006-07-17 Thread Carlos Yoder
"opis" : "%s %s" % (row[3], row[1]), "cars_count":row[4] } result_list.append(dict_obj) # template expects "model_list" model_list = result_list Hope this helps, Carlos On 7/

Not sure how to do this (many to many problem)

2006-07-17 Thread Carlos Yoder
=models.HORIZONTAL) ... but that's not what I mean. I need the special prices to be unique to Car and Wholesaler. Could anyone be so kind as to shed some light on how to do this, the Django way? Mil gracias, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~--

Re: Not sure how to do this (many to many problem)

2006-07-17 Thread Carlos Yoder
I guess I found a lead at tests\modeltests\m2m_intermediary\ if anyone knows if that's correct (or wrong as hell), please let me know :-) On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > Hello! > > I'm building a sort of b2b app that lists a car catalogue.

Re: Not sure how to do this (many to many problem)

2006-07-17 Thread Carlos Yoder
he end of the page. Do you know of a way to configure and alter this behaviour? Mil gracias, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&q

Error with "media" dir on Windows, Python 2.3, etc

2006-07-18 Thread Carlos Yoder
t uploaded and saved via admin, but when trying to accessing them I get: Page not found: d:\dev\python23\lib\site-packages\django-0.95-py2.3.egg\django/contrib/admin/media\cars/alfa145_.jpg That path certainly looks suspicious... ideas? Mil gracias, -- Carlos Yoder http://carlit

Admin and limit_choices_to, part XXXIII =)

2006-07-18 Thread Carlos Yoder
the Meta.js property. Ideas? Help much appreciated, -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to

Re: ifequal template problem

2006-07-18 Thread Carlos Yoder
OK, I fixed it, by defining a 'computed' method that returns the int value in str form. So silly! def prva_registracija_mm_str (self): return str(self.prva_registracija_mm) Ohwell :-) On 7/17/06, Carlos Yoder <[EMAIL PROTECTED]> wrote: > Forgot to s

Re: Extending pluralize?

2006-07-18 Thread Carlos Yoder
t sl translation > don't have > Plural-Forms defined. > > -- > Neboj¹a Ðorðeviæ - nesh Hvala Neboj¹a! Unfortunately, I believe there's a couple of caveats still here, but this is definitely a source to investigate! Regards, -- Carlos Yoder http://carlitosyoder.blogspot

Re: Related tags query, many-to-many double join

2006-07-19 Thread Carlos Yoder
nteractions in your Django model > classes your database logic will all be in the same place and > maintenance should be simple. > > Cheers, > > Simon > > > -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You r

Django WORKS at Servage.net!

2006-07-20 Thread Carlos Yoder
d share it with the world -- it just took too much effort NOT to do it (imagine all sorts of silly quirks flying around at the same time). So there, I'm happy I managed! =) -- Carlos Yoder http://carlitosyoder.blogspot.com --~--~-~--~~~---~--~~ You received

Re: Any good Python book recommendations?

2006-07-23 Thread Carlos Yoder
>> Any recommendations? I'm brand new to Python and want to learn for >> use with Django. > The "Learning Python" O'Reilly book is really, really good - one of > the best "Learning X" books I've read for any language. Even better tha

Django + fastCGI + bluehost

2006-04-07 Thread Carlos Yoder
P-CGI/0.1b - Is there anything else I should ask, or this setup could run Django successfully? Thanks a lot! -- Carlos Yoder [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because yo

Re: Django + fastCGI + bluehost

2006-04-10 Thread Carlos Yoder
d > to make sure) > - do i have to buy at least an one-year subscription? can't i just pay > for the first month at the beginning? (it seems that you either buy a > 12month subscription for 7.95$/month, or a 24month one for 6.95$/month) > > thanks, > gabo

Forbidden (403) - CSRF verification failed. Request aborted.

2022-11-22 Thread Carlos Roberto
Hi everyone! I use ngrok to make my projects available in django. I'm having trouble accessing the admin page. After I enter the username and password I get the error 403. Has anyone had the same problem and could help me? Regards -- You received this message because you are subscribed to t

Accounts signup does not create user

2023-06-24 Thread Carlos Pimentel_leanTech
Hello fellows, I have a django app with leaflet map, That allows users to create accounts through a sign up template and view. Before installing allauth it worked fine after I installed it, everything seems to be working but the user is not created and my CustomUsers app in admin area remains unc

Re: Problem with my website

2023-07-12 Thread Carlos Pimentel_leanTech
If your website appears as a blank white page when you set `DEBUG = False` in your Django settings, it indicates that an error has occurred, and Django is not providing detailed error information to the end-user for security reasons. When `DEBUG` is set to `True`, Django shows detailed error messag

Re: Is GeoDjango Too Much For This?

2012-02-25 Thread Carlos Leite
My english is not that great, but I'll try anyway. > I'm currently building my first Django-based app, which is proceeding > fairly well, thus far. One of the goals is to allow users to post > information (text, pics, video) and for the app to be able to > automatically detect the location where t

Re: Is there a orded ModelMultipleChoiceField ?

2012-02-25 Thread Carlos Leite
DId you try to ordered your queryset ? ... to discover the order the user made the choices, if I understand what you want, you have to use some way (ajax), to persist the order somewhere.. and then populate your choices filed following the order persisted. Did that helps? On Fri, Feb 24, 201

Re: Django ExtraField

2012-02-25 Thread Carlos Leite
On Fri, Feb 24, 2012 at 2:14 PM, coded kid wrote: > Sorry, How will I set that? is it from the template? no, its a widget ... you have to set the widget on your form class Class MyForm(model / form) hide_field = forms.CharField(widget=forms.HiddenInput) -- You received this message because

User missing after login

2012-03-07 Thread Juan Carlos
Hello everybody! I am try to add registration in my django site., I am using django.contrib.auth.views.login via django-registration and I have set the next="/home_page/" param in the login form. The view asociated to / home_page/ is excuted, its return looks like this: return render_to_response(

How to deal with multiple foreign keys in child tables

2012-04-10 Thread Carlos Quiros
er can pull down a CRP and add a subcomponent to it. However, the model "objective" reference the model "subcomponent". In the administration of "objective" I would like the user to pull down and select a CRP, then filter the subcomponents of that CRP also in a pull down li

generic view 'create_object' inssue

2012-04-25 Thread Carlos Aboim
I fellows I am getting a strange behavior from a simple generic view The problem is that I can not pass the data in the form to introducing a new object in the database. Then the urls.py file > http://dpaste.com/hold/732643/ The html form is this > http://dpaste.com/hold/732646/ when

Re: generic view 'create_object' inssue

2012-04-25 Thread Carlos Aboim
No answers yet? Can anyone help me?! Thank you Quarta-feira, 25 de Abril de 2012 8:08:24 UTC-3, Carlos Aboim escreveu: > > I fellows > I am getting a strange behavior from a simple generic view > > The problem is that I can not pass the data in the form to introducing a >

configure apache and mod_python

2012-07-11 Thread Carlos Andre
Hi, i'm with a hard problem. also, my apache have a problem he not want be stated, i try use the xamppy and now be sure that problem! As I put apache and mod_python to work? Please help i need this! I've tried a lot for tutorials that do not explain, those who have used it wrong! thanks! -- You r

django+apache

2012-07-17 Thread Carlos Andre
hi programers, i'm with troble in apache with django connect! what i can make to connect! i start with mod_python, but have very troble! can Somebory help me? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to d

activate site django

2012-07-18 Thread Carlos Andre
hi programers! i want to make my project work in web, but i only know how deploy django-mod_python-apache, also the question! i'm keep all install corretc and work correct too, whall i will keep this project in web? process using ftp! thanks! -- You received this message because you are subscrib

Re: Can a method call inside save() display its return on template?

2012-07-19 Thread Carlos Palol
> > Is it now possible what get_direction_descr() and get_vrd_code() return to > be displayed on the template on the fly just after the user selects nod_id1 > and nod_id2 from a dropdown list? > Or how I could accomplish sth like this? > > Hello, the Model save() method is not connected like t

Re: Difficulties using generic views (Tutorial 4, Django 1.4)

2012-07-19 Thread Carlos Palol
> > url(r'^$', > ListView.as_view( > queryset=Poll.objects.order_by('-pub_date')[:5], > context_object_name='latest_poll_list', > template_name='polls/index.html')), > > Here you are setting template_name='polls/index.html' > > TemplateDoesNotExis

Re: Difficulties using generic views (Tutorial 4, Django 1.4)

2012-07-23 Thread Carlos Palol
Let's see the whole error page. On Sunday, 22 July 2012 23:43:59 UTC+2, Ricardo Cardoso wrote: > > Thank you for your input guys. > > Sadly, i had already checked it Carlos and have my templates for polls > under: > /home/my_user/Webdev/Templates/polls > > In thi

Re: Difficulties using generic views (Tutorial 4, Django 1.4)

2012-07-23 Thread Carlos Palol
I'm glad. Not very prone to randomness, actually. Make sure the web server is restarting after your changes, and that the browser cache is not lying to you. Also, if you are changing module (file) names, better delete the .pyc files. Cheers, Carlos Palol On 23 Jul 2012, at

Re: Checkbox checking

2012-08-01 Thread Carlos Palol
It seems in this particular case you don't need the boolean field in the model. As the behaviour you want has to do only with the form, you just have to add an additional required checkbox in this model form. class MyModelForm(forms.ModelForm): involved = forms.BooleanField(required=True) clas

Re: django-allauth and signup or login via twitter?

2012-08-02 Thread Carlos Leite
I've never used allauth. I build an app with login via twitter using django-social-auth instead. I just follow the doc steps. If you'd like to see the code [1] [1] - https://github.com/znc-sistemas/python-people/commit/caf37acc0be9530de1c3a43aa5a525ccba266519 git it a try : pythonpeople.znc

Re: Django: How to get American date format in a form?

2012-08-13 Thread Carlos Palol
Try configuring your form field directly, like this: class CallsForm(ModelForm): contact_date = forms.DateField( localize=True, input_formats=['%m/%d/%Y'], widget=forms.DateInput(attrs={ 'placeholder'='Format is m/d/...', }) ) class

DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Carlos Andre
hi developers i'm with a ptoblem in this date. How work? thanks! -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsu

Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Carlos Andre
Ok, the quest is relative a how that work with forms of data in settins.py! not relative to date time. in real i'm want insert data in databases athroughl shell and thi error is show! 2012/8/14 Satinderpal Singh > On Tue, Aug 14, 2012 at 9:42 PM, Carlos Andre wrote: > > hi

Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Carlos Andre
ach you how to set this variable properly. > > HTH > > Jirka > -- > *From: * Carlos Andre > *Sender: * django-users@googlegroups.com > *Date: *Tue, 14 Aug 2012 15:48:18 -0300 > *To: * > *ReplyTo: * django-users@googlegroups.com > *Subject: *R

Re: DJANGO_DEFAULT_SETTINGS

2012-08-14 Thread Carlos Andre
Thanks for all! i'm solving this problem! 2012/8/14 Melvyn Sopacua > On 15-8-2012 1:02, Furbee wrote: > > > DJANGO_SETTINGS_MODULE is an environment variable that must be set. I > > believe this is taken care of for you when you create a project using > > django-admin. You may need to create it

Re: Using Tag Filters in a generic view

2012-08-23 Thread Carlos Palol
Hi, please share your view class. Cheers On Thursday, 23 August 2012 18:56:37 UTC+2, miked wrote: > > I have create a generic view and in that view I have specified > context_object_name of errata_id_list in this case. This generic view is > tied to a query set of a model and in the view I s

uso do csrf

2012-09-24 Thread Carlos Andre
Olá pessoal, estou com um pequeno problema na implementação de meu projeto. Eu consegui usar no formulário o csrf isto só com o views e templates, mas quando adicionei o forms e usei o csrf não deu certo! implementei do mesmo modo que anterior mas sempre aparece o erro 403! se poderem me ajudar obr

Help with error uploading files

2012-11-07 Thread Carlos Aguilar
Hello, I am working in a project that requires you upload an image in a model. The project was started by other developer. Today testing, without realize changes in the model I am receiving the following error: 'cStringIO.StringO' object has no attribute 'size' I not have idea what is causin

Re: Help with error uploading files

2012-11-08 Thread Carlos Aguilar
Yesterday doing few test I note that the problem is causes by the following configs DEFAULT_FILE_STORAGE = 'waitress.apps.venues.storage.CachedS3BotoStorage' DEFAULT_S3_PATH = "media" I test 2 file storages one is s3_folder_storages.s3.DefaultStorages. I am using the same config in other projec

Re: Help with error uploading files

2012-11-08 Thread Carlos Aguilar
PM, Dennis Lee Bieber wrote: > On Wed, 7 Nov 2012 21:10:06 -0800 (PST), Carlos Aguilar > declaimed the following in > gmane.comp.python.django.user: > > > Hello, > > > > I am working in a project that requires you upload an image in a model. > The > >

Django testing with existing data

2011-08-23 Thread Carlos Brum
Hello guys, I'm new in Django testing whith django test facilities. I've read "https://docs.djangoproject.com/en/1.3/topics/testing/"; but couldn't find what i'm looking for. I'm trying to begin TDD development but wanna use my old data. I don't wanna have to build up all my database again. I al

Re: Django testing with existing data

2011-08-29 Thread Carlos Brum
Thanks, Russ! You're perfectly rigth! I was trying to use TDD in a wrong way. Now I understand I *have* to use a new database. "dumpdata" is what I need. Thanks for your advice. On Aug 23, 8:53 pm, Russell Keith-Magee wrote: > On Tue, Aug 23, 2011 at 9:15 PM, Carlos Brum

Problems trying to use ManyToMany field before saving in a ModelForm

2011-09-12 Thread Carlos Brum
Hello guys, I have a problem to deal with a field ManyToMany in Django. It is the following: When I try to access a list of relations that is my ManyToMany field I get an error "%ModelName% instance needs to have a primary key value before a many- to-many relationship Can be used. " I need to p

Re: DJango for large-scale e-commerce: A good or bad choice?

2011-10-23 Thread Carlos Leite
> I'm looking at all the notable CMSs and web-frameworks across any > language (C++, Ruby, Python, Perl, .NET, PHP), for an e-commerce > solution which suits my project. Which language are most comfortable ? Python is great, easy, elegant, and even for non hard programmers, its easy to maintain. >

Re: Django MongoDB

2012-11-25 Thread Carlos Aguilar
You know which mongoengine and django-nonrel are 2 different libraries for mongodb??? Please select one and use it, but not both. Best Regards -- Carlos Aguilar Consultor Hardware y Software DWD&Solutions http://www.dwdandsolutions.com http://www.houseofsysadmin.com Cel: +50378735118 USA:

forign key no forms

2013-02-10 Thread Carlos Andre
Olá pessoal! Olha, preciso que um foreign key seja acessível com o forms! Tentei de algumas maneiras e não consegui! materiais também não tão sucintos! alguém pode me ajudar com essa questão? Obrigado pela a atenção! -- You received this message because you are subscribed to the Google Groups "

o models possui foreing key! para forms e views?

2013-02-16 Thread Carlos Andre
Olá pessoal mais uma vez postando já está chato, eu entendo! Olhem só: O models.py class Base(models.Model): nome=Char class endereco(models.MOdel): rua=Cha... class registro(models.Model): registro= Cha... individuo = Foreignkey(Base)

Re: I need help

2013-02-19 Thread Carlos Aguilar
I fix the error. Thank you for your time. The error was caused for a bad access to delete function. Thanks againg. Best Regards On Tue, Feb 19, 2013 at 5:55 PM, Russell Keith-Magee < russ...@keith-magee.com> wrote: > > On Wed, Feb 20, 2013 at 6:52 AM, Carlos Aguilar wrote: >

django 1.5 not getting css

2013-04-21 Thread Carlos Aboim
Hi everyone. Anybody can tell me why I can get css on my flatpage /home/ ? http://dpaste.com/hold/1066757/ -> this is the html of the page http://dpaste.com/hold/1067747/ ---> this is the css styles http://dpaste.com/hold/1066760/ -->settings.py http://s22.postimg.org/

css for flatpages

2013-04-21 Thread Carlos Aboim
Hi tell me, where should live css files for flatpages, these need a special folder for server to find them as for apps for example? thank you! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving em

Re: django 1.5 not getting css

2013-04-21 Thread Carlos Aboim
ok I understand that, but I am using the development server. any other clues? thanks Domingo, 21 de Abril de 2013 17:44:46 UTC+1, Rainy escreveu: > > > > On Sunday, April 21, 2013 11:18:22 AM UTC-4, Carlos Aboim wrote: >> >> Hi everyone. >> >> Anybody can tell

add and remove instance keeping the log

2013-05-08 Thread Carlos Aboim
Hi Imagine something like: def Model_A(models.Model): number = models.IntegerField() date = models.DateField() Add an instance of the Model_A Delete an instance of the Model_A Add other instance of the Model_A Delete other instance of the Model_A Then when I do a query on database I wh

NoReverseMatch at /app/

2013-05-09 Thread Carlos Aboim
I am getting a strange error on my humble opinion.. *Why am I getting this error?* Reverse for 'registo.detail' with arguments '(1,)' and keyword arguments '{}' not found. *my views:* from django.views.generic.edit import CreateView, UpdateView, DeleteView from django.shortcuts import render_

Re: User Permissions

2013-07-30 Thread Carlos Leite
Django do not have a "per-row" permission system in the box. You will have to create that by yourself. You may start adding something like "owner" to your content type. this field will be somthing like owner = models.ForeignKey(User) then, based on "request.user" in your views (for instance),

Re: User Permissions

2013-08-01 Thread Carlos Leite
On Wed, Jul 31, 2013 at 2:01 AM, Jani Tiainen wrote: > On Tue, 30 Jul 2013 16:39:27 -0300 > Carlos Leite wrote: > >> Django do not have a "per-row" permission system in the box. >> You will have to create that by yourself. > > That is slightly incorrect - Dja

Upload de musicas (music upload)

2013-09-16 Thread Carlos Andre
Olá pessoal, tudo bom? Eu gostaria de uma ajuda de como fazer upload de músicas no banco de dados, como faço upload de arquivo. Gostaria de exemplos. Hello guys, how are you? I would like some help on how to upload songs in the database, how do I upload file. I would like examples. -- You receiv

Couple of random Error 500 issues

2013-09-20 Thread Carlos Villavicencio
Hello, I have a django project running on digitalocean (in a 512M server) and suddenly it appears Error 500 on the Apache. I'm running wsgi and only 2 users (because we are starting) Looking on the logs, the errors were the following: 1. ImproperlyConfigured: Error importing middleware djang

Speed Improvements: Properties, Database Denormalization, Caching, Connection Pooling, etc.

2013-10-30 Thread Carlos D.
So, first thing: I come from a C++ background and I've been building my first site with Django. As I normally try to do in C++, I don't want to store any more information than I have to since that can lead to big problems with data consistency. In C++, I do this with private members / methods

Re: Speed Improvements: Properties, Database Denormalization, Caching, Connection Pooling, etc.

2013-10-30 Thread Carlos D.
Note: one other thing is that the legacy DB we're using has a character varying (PostGres) type as its primary key, even though it's really just an integer that should probably be auto incrementing serial type. We're not adding anything new to this DB so the auto behavior isn't a big deal. It

Pagination import error

2011-06-20 Thread Carlos Aboim
Hi there, I am getting this error on my code execution: Request Method: GET Request URL: http://127.0.0.1:8000/admin Django Version: 1.3 Exception Type: ImportError Exception Value: cannot import name Paginator Exception Location: /Library/Frameworks/Python. framework/Versions/2.7/ lib/py

Re: trouble initializing the website

2015-01-16 Thread Carlos Andre
Your first step are configure settings.py in databases, you heve to create a conetion. Secund step, syncdb will go create the struct databases. And finally runserver will start your server. In browser use to admin: 127.0.0:8000/admin. That need loggin who you configure in syncdb. Em 16/01/2015 08:5

Re: trouble initializing the website

2015-01-16 Thread Carlos Andre
And you have, after all, create a aplication with command: manage,py startapp [name your app] Em 16/01/2015 08:56, "Nicky Setia" escreveu: > Hi, > I used Django to create my personal webpage. The tutorial on your homepage > was very helpful and easy to follow. > I have my domain and hosting set u

Re: syncdb error with Mysql database on Windows 7

2015-01-25 Thread Carlos Andre
install PyMySQL, after create a user e a databases in mysql terminal; e.g:1º)create user 'root'@'localhost' identified by 'fish1777'; 2º) create database Mydb; 3º) grant all privileges on Mydb.* to 'root'@'localhost' identified by 'fish1777'; use syncdb. 2015-01-25 6:04 GMT-02:00 olek.russ : >

Re: Django web hosts in Canada

2015-01-30 Thread Carlos Carcamo
Why don't you try Digitalocean? Take a look at those articles: https://www.digitalocean.com/community/tutorials/how-to-use-the-django-one-click-install-image https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-django-with-postgres-nginx-and-gunicorn If you want $10 credit

Re: Real time and Django - approaches

2015-02-20 Thread Carlos Aguilar
ogle.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-users/a5923d8e-54a4-46ab-8df0-fdbb25ad076b%40googlegroups.com > <https://groups.google.com/d/msgid/django-users/a5923d8e-54a4-46ab-8df0-fdbb25ad076b%40googlegroups.com?utm_

Re: uWsgi not seeing javascript

2015-04-21 Thread Carlos Aguilar
> email to django-users+unsubscr...@googlegroups.com. > To post to this group, send email to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users. > To view this discussion on the web visit > https://groups.google.com/d/msgid/django-

Help with customizing Django authentication

2015-05-27 Thread Carlos Ribas
Hello All, I am currently extending the existing User model to store additional information. So, basically I have: # models.py class Person(models.Model): user = models.OneToOneField(User, verbose_name=_('User')) zipcode = models.CharField(_('Zip Code'), max_length=9, blank=True, null=T

Re: Help with customizing Django authentication

2015-05-29 Thread Carlos Ribas
2015 12:54:59 UTC-3, Carlos Ribas escreveu: > > Hello All, > > I am currently extending the existing User model to store additional > information. So, basically I have: > > # models.py > class Person(models.Model): > user = models.OneToOneField(User, verbose_na

Re: Help with customizing Django authentication

2015-06-02 Thread Carlos Ribas
Hello Carl, I really appreciate your comments and I agree with you. I'll put here soon the code I'm writing, maybe this can be helpful for others too. Thanks! Em sexta-feira, 29 de maio de 2015 18:53:25 UTC-3, Carl Meyer escreveu: > > Hello Carlos, > > On 05/29/2015

Values from class to class

2015-07-06 Thread Carlos Andre
Hello to all , I need to solve a problem. I have two classes of which have to use , in the second class, the first coming values. How to do this? Thanks for listening! -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this grou

Re: Values from class to class

2015-07-07 Thread Carlos Andre
0, default = p.qtdade ) 2015-07-07 4:08 GMT-03:00 James Schneider : > Can you give a simple example or analogy of what you are trying to do? > > -James > On Jul 6, 2015 5:29 PM, "Carlos Andre" wrote: > >> Hello to all , I need to solve a problem. I have two classes

Re: Values from class to class

2015-07-07 Thread Carlos Andre
i trying use thats solutions, in real yet continuos the problem. The value, when are to use in other class, return to defaut value without get the value who i send in the field. 2015-07-07 15:42 GMT-03:00 James Schneider : > On Tue, Jul 7, 2015 at 10:59 AM, Carlos Andre wrote: > > ex

Re: Values from class to class

2015-07-07 Thread Carlos Andre
I want copy some values to other fields in other table! 2015-07-07 19:34 GMT-03:00 Carlos Andre : > i trying use thats solutions, in real yet continuos the problem. > The value, when are to use in other class, return to defaut value without > get the value who i send in the field. >

Re: Label in Charfield

2015-07-20 Thread Carlos Andre
campo = forms.Charfield(max_lenght = 5, widget=(attr={'class':classe_css})) 2015-07-20 10:25 GMT-03:00 Ayush Jha : > Create a widget for the CharField FormField > > http://stackoverflow.com/questions/4707192/django-how-to-build-a-custom-form-widget > > -- > You received this message because you a

imagens com django templates

2014-07-14 Thread Carlos Andre
Olá pessoal, estou tentando usar um slideshow e uso um for para iterar as imagens que passam vidas de um repositório, problemas que funciona sem o comando for no template, quando adiciono ele mostra nada para! Pelo que vejo há problemas no reconhecimento dos comandos de templates, caso como o que t

Find link in a "dynamic" page

2014-07-17 Thread Carlos Perche
Hello guys, could someone help me with this ... I am needing to find the link Ext # http://docs.sencha.com/ext/5.0.0/apidocs/source/Focusable.html-util-Focusable starting the url http://docs.sencha.com/ext/5.0.0/apidocs/ The problem is that when having to recover the contents of the page with

<    1   2   3   4   5   6   >