I use comment of Django applicaition, and the comment page looks
anything good, but when I post the comment, there is no comment
displayed on the page without any problem showing.
the template code:
Comments
{% get_comment_count for bookmarks.sharedbookmark
shared_bookmark.id as c
Hi,
Try this
*fechaProyecto = models.DateField(verbose_name=**'Ingresó a la subdirección
de Proyecto', blank=True, null=True)*
Thanks,
Anoop
atm
___
Life is short, Live it hard.
On 27 November 2011 05:22, Lord Goosfancito wrote:
> Hello.
>
> I have problem when i declared field with "blank"
I've been trying to implement a relatively simple django app, in which
I need to have a multistep form and a dynamically generated choice
field. I'm using Django 1.3 and the Form Wizard.
In step one of the form, I ask for a URL from the user, which I'd like
to use to dynamically generate the list
Hello.
I need load a table to fill one dictionary, next use it in my model.
Example:
def Articles(models.Model):
rules = Here i need load table to fill rules filed...
example: (
('1', 'one'),
('2', 'delete it'),
Tim,
Does our system include a Python Interpreter?
"
The interpreter’s line-editing features usually aren’t very sophisticated.
On Unix, whoever installed the interpreter may have enabled support for the
GNU readline library, which adds more elaborate interactive editing and
history features. Pe
So you feel that that documentation of Python is the best reference? I'm
sure it is just wanted to ask.
JJ
On Sat, Nov 26, 2011 at 2:20 PM, Timothy Makobu wrote:
> But first, all of this http://docs.python.org/tutorial/index.html
>
>
> On Sat, Nov 26, 2011 at 10:19 PM, Timothy Makobu <
> makobu
Hello.
I have problem when i declared field with "blank" the admin django show
this error:
(1048, "Column 'fechaProyecto' cannot be null")
in my models.py:
fechaProyecto = models.DateField(verbose_name='Ingresó a la
subdirección de Proyecto')
fechaProyecto.blank = True
What is the
>>> import csv
>>> data = csv.reader(open('/path/to/csv', 'r'), delimiter=';')
>>> for row in data:
>>> category = Category.objects.get_or_create(name=row[0])
>>> sub_category = SubCategory.objects.get_or_create(name=row[1],
>>> defaults={'parent_category': category})
>>> product = Product.objects
But first, all of this http://docs.python.org/tutorial/index.html
On Sat, Nov 26, 2011 at 10:19 PM, Timothy Makobu <
makobu.mwambir...@gmail.com> wrote:
> Nice. Now read ALL of this http://djangobook.com/en/2.0/
>
>
> On Sat, Nov 26, 2011 at 9:55 PM, JJ Zolper wrote:
>
>> Looks like I am in goo
On 11/26/2011 01:23 AM, Gelonida N wrote:
> It seems I'm not the first one who wans to run django tests with
> postgressql and who doesn't have permissions to create databases.
>
> I found two suggestions on the web:
>
> One is to use sqlite for testing instead of postgres.
> However I'm not real
Nice. Now read ALL of this http://djangobook.com/en/2.0/
On Sat, Nov 26, 2011 at 9:55 PM, JJ Zolper wrote:
> Looks like I am in good shape!
>
> Thanks so much man!
>
> http://madtrak.com/success.png
>
> JJ
>
>
> On Sat, Nov 26, 2011 at 1:51 PM, JJ Zolper wrote:
>
>> Thanks! Yes sounds like som
Hi Chris,
Thanks a lot.
On 11/26/2011 09:51 AM, Chris Northwood wrote:
> On 25 November 2011 23:59, Gelonida N wrote:
>> As for testing the database is created from scratch and as migrations
>> are not really needed in this case I decided to disable south for
>> running tests.
>>
>> I just wond
Looks like I am in good shape!
Thanks so much man!
http://madtrak.com/success.png
JJ
On Sat, Nov 26, 2011 at 1:51 PM, JJ Zolper wrote:
> Thanks! Yes sounds like something from my UNIX class. I have now added it.
>
> What will django-admin.py do for me? Oh are you just saying I can run it
> fr
Thanks! Yes sounds like something from my UNIX class. I have now added it.
What will django-admin.py do for me? Oh are you just saying I can run it
from anywhere now? Any of the commands I want to work with python/django?
JJ
On Sat, Nov 26, 2011 at 12:56 AM, Timothy Makobu <
makobu.mwambir...@gm
Hello,
I'm trying to run the django server on my mac book pro 2011 with osx
lion but I get an error.
I'm using the mamp mysql database and I've already configured it
inside the setting file.
When I try to run the command:
python manage.py runserver
I got this error:
Validating models...
Unhan
hi everyone. I'm working on this view: http://dpaste.com/661995/ and i
have a ValidationError while trying to save the model instance. the
error is 'Enter a valid date in -MM-DD format'. the datefield is
correctly filled, the type of instance passed to model is unicode. I
have to do something l
If I use cache_page() decorator for my view function, will the TIMEOUT be
able to take precedence over CACHE_MIDDLEWARE_SECONDS?
In my settings.py,
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.filebased.FileBasedCache',
'LOCATION': os.path.join(WEB_ROOT, "dja
Thank you very much for the answer, but I'm still having issues.
I've declared the funcion on the class that will be monitored for changing,
let's say, MyModelA. And then, in the view that controls the changes for
objects of the model I want to change, in this case MyModelB, I've used the
post_sav
Hi,
Let's assume your first model on which you want to have post_save be
User(django.contrib.auth.models.User). Say, you want to alter the data
of some other model whenever a User is saved i.e post_save for User.
Let's say this model as "MyModel". The code which you want to run on
post_save goes i
Hi!
I'm using Django with Heroku and django-la-facebook (https://
github.com/cartwheelweb/django-la-facebook)
I'm having trouble allowing Facebook authentication, but I actually
don't think my problem is very difficult.
When I try to sign-in with facebook, it throws me to the following
uri:
htt
On 11/25/2011 05:23 PM, Fabio Natali wrote:
On 11/25/2011 03:12 PM, Tom Evans wrote:
[...]
It's not that tricky, is it?
Read the CSV file, split out the fields.
Get or create the category
Get or create the subcategory
Get or create the product
in code:
import csv
data = csv.reader(open('/path
On 25 November 2011 23:59, Gelonida N wrote:
> Hi,
>
> As for testing the database is created from scratch and as migrations
> are not really needed in this case I decided to disable south for
> running tests.
>
> I just wondered whether there were alternative / more elegant ways.
There's a sett
22 matches
Mail list logo