Django scheduling/calendaring

2019-02-19 Thread Manu Febie
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

Re: Where to start - New to Django and Python

2018-10-22 Thread manu . pascual . luna
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

Using Django Sessions

2018-03-22 Thread Manu Febie
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 =

bug in migration squashing

2015-09-08 Thread ?manu*
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).

GET parameters in admin "add" model page

2014-05-11 Thread ?manu*
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

Re: Showing which users are viewing a given page

2014-03-04 Thread Manu
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

Re: import

2014-02-11 Thread Manu
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 little stupi

Re: Writing your first Django app, part 2 - Customize the admin look and feel

2014-01-15 Thread Manu
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

Re: nginx server not reflecting changes

2014-01-15 Thread Manu
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 <manu...@gmail.com > > wrote: > > > > Try to reload nginx. > > > >> sudo nginx -s reload > > > &g

Re: nginx server not reflecting changes

2014-01-12 Thread Manu
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

Is there any good tutorial on how to daemonize celery?

2013-06-04 Thread Manu
! 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 to dj

Re: internal server error not sending message notification

2013-05-04 Thread ?manu*
'propagate': True, > }, > } > } > > Hope that helps, > Ian > > > On Sat, May 4, 2013 at 8:01 AM, ?manu* <emanuele...@gmail.com > > wrote: > >> I suddenly realized that my server is no more sending email notifications >> when an

internal server error not sending message notification

2013-05-04 Thread ?manu*
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

Re: Django-allauth: ImproperlyConfigured at /accounts/login/ No Facebook app configured: please add a SocialApp using the Django admin

2012-12-26 Thread Manu
-a-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. >

Django-allauth: ImproperlyConfigured at /accounts/login/ No Facebook app configured: please add a SocialApp using the Django admin

2012-12-24 Thread Manu
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 "Django

Re: count resulting rows in sliced valuesqueryset

2012-11-24 Thread ?manu*
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 =

Re: how to use get_queryset in my code

2012-11-21 Thread ?manu*
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

count resulting rows in sliced valuesqueryset

2012-11-21 Thread ?manu*
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

Re: Social networking site

2012-10-12 Thread Manu S Ajith
cr...@googlegroups.com. > For more options, visit 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:/

Re: consistent (un)capitalization in form labels

2012-05-14 Thread ?manu*
s with css. > > label { > >     text-transform: lowercase;} > > > Done. > > Hth. > > > On 13 mei, 12:02, "?manu*" <emanuele.paol...@gmail.com> wrote: > > > > Hi all, > > > > my graphic design prescribes that ever

Re: consistent (un)capitalization in form labels

2012-05-14 Thread ?manu*
Nice. I think this will be my solution! On 13 Mag, 20:42, Ejah <ej.huijb...@gmail.com> wrote: > I would solve this with css. > label { >     text-transform: lowercase;} > > Done. > Hth. > > On 13 mei, 12:02, "?manu*" <emanuele.paol...@gmail.com> wro

consistent (un)capitalization in form labels

2012-05-13 Thread ?manu*
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

Re: how to change column name in many2many relations?

2012-01-12 Thread ?manu*
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*" <emanuele.paol...@gmail.com> wrote: > Is it possible to change the column name in many2many relations? >

how to change column name in many2many relations?

2012-01-12 Thread ?manu*
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

ValidationError to error message

2011-12-04 Thread ?manu*
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

Re: all data of all manyToMany relations lost!

2011-05-13 Thread ?manu*
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*" <

all data of all manyToMany relations lost!

2011-05-13 Thread ?manu*
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

Auth tests fail, remote_user

2010-04-27 Thread manu CAZ
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

another tutorial for polls...

2009-12-14 Thread Manu
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 ! Manu

Re: Initial values and unbound forms (apparently a bug?)

2009-12-06 Thread Manu
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 received th

Re: Where to store repetitive form logic?

2009-12-06 Thread 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

[ANN] obviews: object oriented views

2009-12-05 Thread Manu
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

Re: djangobook.com sourcecode

2008-12-05 Thread Manu
> 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 >

djangobook.com sourcecode

2008-12-05 Thread Manu
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

Re: Update database field

2006-11-18 Thread Manu J
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: > > Yea, th

Re: Want to see your favorite branch merged? Here's how you can help!

2006-11-16 Thread Manu J
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

Re: How to find out the id of the last record in a table?

2006-11-16 Thread Manu J
ject, > 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 = Person.objects.create(first_name="Bruc

Re: How to find out the id of the last record in a table?

2006-11-15 Thread Manu J
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