Has the source code for djangobook.com ever released ? Is there a plan
to release it if it is not released ? And lastly does anyone know of
any projects which can provide the comments functionality of
djangobook.com ?
--~--~-~--~~~---~--~~
You received this message
> If you go and read about the comments system on the site, it tells you
> (see:http://djangobook.com/about/comments/) exactly where it came
> from:
>
> "Many, many thanks to Jack Slocum; the inspiration and much of the
> code for the comment system comes from Jack's blog, and this site
> couldn'
might be common, but still not really
grateful. So I am refactoring all bit by bit and making some releases
when I feel its readable. The starting point if you are interested
could be on www.obviews.com, a demo web-site that will replace any
long speech.
Do not hesitate posting some feedback,
Manu
I got the same need and wrote up a FormView wich handles all the
repetitive process of a form.
In your case, you could build your view like this: http://dpaste.com/129827/
You will find basic example (and explanations) here:
http://www.obviews.com/form/simplest/.
Hope this helps,
Manu
--
You
ew objects
created/modified. It's up to you then to really create/modfiy those
objects.
Consequently a solution for you would be to set extra=0 and set up you
inital datas as you have done but not create objects if default
values have not been changed (for instance).
Manu
--
You receiv
a few less theory and a bit more show... so you will find
the real polls on http://polls.obviews.com, with (as you guessed) real
stuff like polls and choices and votes (and code too).
Keep in mind the demo is very simple, its purpose being more a demo...
than a poll app :)
Any feedback welcome !
Hi all,
my graphic design prescribes that every label in html FORMS should be
not capitalized and without any suffix. For example, a "my_date" field
should be rendered as:
my date
To achieve this I need to set a "label" attribute in every Form. For
ModelForm (Forms automatically created from mod
Nice. I think this will be my solution!
On 13 Mag, 20:42, Ejah wrote:
> I would solve this with css.
> label {
> text-transform: lowercase;}
>
> Done.
> Hth.
>
> On 13 mei, 12:02, "?manu*" wrote:
>
>
>
>
>
>
>
> > Hi all,
>
: lowercase;}
>
> > Done.
> > Hth.
>
> > On 13 mei, 12:02, "?manu*" wrote:
>
> > > Hi all,
>
> > > my graphic design prescribes that every label in html FORMS should be
> > > not capitalized and without any suffix. For example, a &q
I cannot understand the following behaviour:
>>> from django.core.exceptions import ValidationError
>>> str(ValidationError('so and so'))
"[u'so and so']"
>>> str(Exception('so and so'))
'so and so'
How do I convert a ValidationError to a str for composing a human
readable message? Even if Valida
Is it possible to change the column name in many2many relations?
I can change in in foreignKeys with the db_column attribute. I can
change the table name in many2many relations with db_table. What about
column names in many2many relations?
Thanks,
E.
--
You received this message because you are
I have solved by defining the model of the relation with a "through"
attribute. A little lenghty but effective...
E.
On Jan 12, 11:01 am, "?manu*" wrote:
> Is it possible to change the column name in many2many relations?
>
> I can change in in foreignKeys with t
Suppose I have a queryset qs. For paginating purposes I need to do
something like:
count = qs.count()
qs = qs[0:100]
Unfortunately this executes the query twice, which I don't want.
I can use postgresql windowing function like that:
qs = q.extra(select = {'count': 'COUNT(*) OVER()'})
to get
On Wednesday, November 21, 2012 7:53:59 AM UTC+1, Nebros wrote:
> Its not a problem of the version, my pycharm gave no error, but it was not
> possible to generate the model... by generating there was always an
> error, like it cant find an class or something else
>
Are you sure the problem is
On Saturday, November 24, 2012 8:03:06 AM UTC+1, Peter of the Norse wrote:
> On Nov 21, 2012, at 3:53 AM, ?manu* wrote:
>
> > Suppose I have a queryset qs. For paginating purposes I need to do
> something like:
> >
> > count = qs.count()
> > qs = qs[0:
Hi,
I'm facing this error when I access 'accounts/login/'. Posted a question
here - http://stackoverflow.com/q/14019017/1218897
I would really appreciate any help with it.
Thanks in advance.
-Manu
--
You received this message because you are subscribed to the Google Groups
-socialapp-using-the-djan
It's solved for now. :-)
Regards,
Manu
On Tuesday, 25 December 2012 20:16:27 UTC+5:30, Gabriel - Iulian Dumbrava
wrote:
>
> Hi Manu,
> Enter the admin and at allauth -> apps add a new application of type
> "Facebook" with your FB credentials.
I suddenly realized that my server is no more sending email notifications
when an internal error occurs. I'm not sure which could be the modification
that caused this behavior. I have the following information:
1. on internal errors the server gives an error not founding template file
500.html.
,
> 'loggers': {
> 'django.request': {
> 'handlers': ['mail_admins'],
> 'level': 'ERROR',
> 'propagate': True,
> },
> }
> }
>
> Hope that hel
time!
Regards,
Manu
--
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
Dear experts,
today I was inspecting the ManyToMany relations in the _meta subclass
of a Model class of my database. At some time I realized that all data
associated to such relations was lost in the database! The
corresponding tables are empty. Other fields and relations are ok.
I suspect I have
Maybe I found the offending command!! Here is what I wrote:
# T is some model in my model.py
opts = T._meta
fields = opts.fields
fields.extend(opts.many_to_many)
...
This is awful! I'm erroneously modifying the fields value of my
model!
E.
On 13 Mag, 23:45, "?manu*" wrote:
Try to reload nginx.
sudo nginx -s reload
or stop it and restart
sudo nginx -s stop
> sudo nginx
if it's still not reflecting those changes, check which settings.py is
being used by runserver and the gunicorn. Or, the problem could be that you
have to restart gunicorn
sudo supervisorctl r
Please find some of my remarks below
On Tuesday, 14 January 2014 19:04:19 UTC+5:30, sandy wrote:
>
>
> On Sun, Jan 12, 2014 at 9:48 PM, Manu >
> wrote:
> >
> > Try to reload nginx.
> >
> >> sudo nginx -s reload
> >
> >
> > or sto
Can you post your directory structure here? The problem should be there,
most probably.
On Wednesday, 15 January 2014 11:37:51 UTC+5:30, Tim DiSabatino wrote:
>
> Hello,
>
> I am just going through the Django Tutorial and am in Writing your first
> Django app, part 2. In the section called "Cus
nsult that package's
documentation. Like django documentation <http://docs.djangoproject.com/en/>for
imports from django.
All the best!
- Manu,
On Tuesday, 11 February 2014 15:56:19 UTC+5:30, joh.hendriks wrote:
>
> Hello all.
>
> I have a little question, maybe a littl
Hey Some Developer,
If you have the option, try http://www.google.com/analytics/.
There are other similar services to get the analytics about real time usage
statistics about your website.
If you want to identify each individual user, http://kissmetrics.com/ or
https://mixpanel.com/ are also goo
I noticed that django admin "add" page reads GET parameters and uses them
as initial values in the form. However I was not able to pass DateTime
values in this way. In particular if I try to pass a DateTime value I get a
"server error".
See
http://stackoverflow.com/questions/23559771/django-a
I had experienced a problem after squashing migrations. The problem is
described
here:
http://stackoverflow.com/questions/31606372/django-migrations-build-graph-has-a-bug
I have not a description of how to reproduce the bug, but I think I can say
why the source code is wrong (see the link). Do
Hi,
Tests of the auth app are failing with my environnement, especially the
remote_user tests.
I didn't try to custom this app or anything. 'admin' , 'sites' and
'contenttypes' are in my INSTALLED_APPS.
Did I missed a dependency ?
Here is a traceback:
ERROR: test_known_user
(django.contrib.au
There is a get_last_insert_id() function defined in the backend
models. Can that be used somehow ?
--
Manu
On 11/15/06, Pythoni <[EMAIL PROTECTED]> wrote:
>
> Thank you very much for help
> L.
>
>
> >
>
--~--~-~--~~~---~--~~
You
the last inserted id is to create an object,
> save it, then read its id directly. If you need the maximum inserted
> id, use select max(id) from table.
To do this you should be using the create method and not the save method
since the save does not return the object saved.
p = Per
1. Row level permissions
2. Schema Evolution
--
Manu
--~--~-~--~~~---~--~~
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 unsubs
xpress'),
)
If i pass that to the template as shipping_choices and do this
{% for choice in shipping_choices %}
{{ choice[0] }}
{% enfor %}
I get an error. How do i access the array values ?
Regards and Thanks
Manu
--~--~-~--~~~---~--~~
You received this m
did something like this
i = Item.(id=4, name='New Name')
i.save()
The Item model has a created_at column, which is sent NULL if I do
this. Hence the query fails. There shoud be a better way of doing it.
--
Manu
On 11/14/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
&g
Hello,
I am practicing for my college exams. I am building a Restaurant Order
System with Django and I am using Django sessions for the first. I borrowed
some ideas from the "Django by example".
Below you can find the MenuItem model and Order Model.
class MenuItem(models.Model):
category =
Hello Django developer,
I have been assigned for my first real job as a developer. I have been
asked to develop a *Learning Management System*. One of the components/apps
this project must have is a way of managing training programs and projects
and view them on a calendar. This is how my clien
isit this group at
> http://groups.google.com/group/django-users?hl=en.
>
--
Manu S Ajith
Program Lead,
Ruby Kitchen Technosol Pvt. Ltd.,
Cochin - 682309.
http://rubyk
I don't know if it's the best book but I'm enjoying
http://www.obeythetestinggoat.com. I like
the
TDD approach for learning a new technology. Also you can r
39 matches
Mail list logo