Re: Why does Django allow Circular Model Relation

2016-02-19 Thread Eddilbert Macharia
Hello vadim when would such a relationship be needed I'm curious -- 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

Why does Django allow Circular Model Relation

2016-02-19 Thread Eddilbert Macharia
Hello All, I was working on a project, and realized that Django does not complain when you create Circular Model relationship even when creating migrations where i expected to have this complain e.g. the example does not make any sense as far as relationships go but it makes my point.

logged in user permissions and roles caching

2016-01-20 Thread Eddilbert Macharia
Hello guys I'm a little bit confused... . When using django all that is, permissions and roles He is my understanding of how django works. On each request made my by a client django creates a request object from it And by using the authentication middleware it adds the logged

python type class and object class

2015-05-31 Thread Eddilbert Macharia
Hello All, I know this is not python group but i believe you guys can help, especially because Django makes heavy use of metaclases. I'm having headache trying to understand the cyclic relationship that exit between the `metaclass` type, the `object` class, and the `class` type. I'm trying to

Re: Apache and Djagno

2015-01-05 Thread Eddilbert Macharia
hello, next set up n apaches virtual host as i have done above. thats all. -- 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

Re: Apache and Djagno

2015-01-05 Thread Eddilbert Macharia
On Saturday, January 3, 2015 7:45:00 PM UTC+3, SungHo Park wrote: > > Hi > I have tried to use Django in Apache, but it doesn't work. > > My Django's version is 1.7.1 so I refered this page. > https://docs.djangoproject.com/en/1.7/howto/deployment/wsgi/ >

heroku django staticfiles

2014-09-24 Thread Eddilbert Macharia
Hello. I have a django app on heroku, the first time i git push , static files work perfectly. But any subsequent pushes break the staticfiles. I get "Oserr:no such folder or file on app/{ myappname }/static". Whats the issue ?? I have followed the django heroku getting started especillay

Re: models get_absolute_url issue

2014-09-11 Thread Eddilbert Macharia
ail'), > i was leaving out the *\d+ *in the url pattern. Regards, Eddilbert Macharia. -- 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+uns

models get_absolute_url issue

2014-09-10 Thread Eddilbert Macharia
Hello All, i get the following error when i try to load a model instancce using the based DetailView to load the model instance on template after a CreateView of the same model instance > Environment: > > > Request Method: GET > Request URL: http://localhost:8000/management/resource/25 > >

Re: Save data from form

2014-09-08 Thread Eddilbert Macharia
Hello, Your welcome, its not that difficult to wrap head around django though, just patience is required Regards, Eddilbert Macharia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiv

Re: Save data from form

2014-09-07 Thread Eddilbert Macharia
rm = NameForm() > > return render(request, 'name.html', {'form': form}) > > there is an easier way of doing this by use of modelforms check this out https://docs.djangoproject.com/en/1.7/topics/forms/modelforms/ Hope it assists you. Regards, Eddilbert Macharia. -- You receiv

WHERE TO PLACE BUSINESS LOGIC IN DJANGOS' MTV

2014-09-07 Thread Eddilbert Macharia
, as of my understanding its supposed to handle http requests and response and delegating templates to use.also it becomes hard to do unit testing. Regards, Eddilbert Macharia. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubs

advice from experts

2014-07-20 Thread Eddilbert Macharia
hi guys i have created a web application and its my first one,so i luck the experience in the finer details requirement. what are some of the considerations i shld keep in mind before i move the application from development to production. here is one i realised recently, locking out a resource

postgres json or hstore

2014-06-04 Thread Eddilbert Macharia
Hi All, Using postgres json and hstore fields to store alot of data. How would i go about create a C.R.U.D using this field types, java,c/c++,php or python would make it easier for me understand. Regards -- You received this message because you are subscribed to the Google Groups

Re: saving backbonejs model with django backend

2014-06-01 Thread Eddilbert Macharia
Hi, For anyone interested or stuck as i was this is what i did in my view and it started working,its not working optimamly as i wanted it to but its a working progress but its atleast saving to the database import json @csrf_exempt def saveFormDesign(request): data=request.body

saving backbonejs model with django backend

2014-05-30 Thread Eddilbert Macharia
Hi Guys, how do i save a backbone model in the database ?? here is how i have tried it and the errors i am getting, please assist , /* * * * the field model * * */ var fieldModel=Backbone.Model.extend({ defaults:{ name:'', type:'', placeholder:'',

Re: backbonejs and django

2014-05-30 Thread Eddilbert Macharia
Hi sanjay, Thanks for your reply,here is how I did it this way $(function(){ // event object var vent=_.extend({},Backbone.Events) // the model var myModel=Backbone.Model.extend(); // the model collection var

backbonejs and django

2014-05-29 Thread Eddilbert Macharia
Hi All, i am using django-tastypie to return django models as json object. when i run the following code var org = Backbone.Model.extend({ urlRoot: 'api/orgnanization/', }); var orgColl=Backbone.Collection.extend({ model: org,

Re: which to use for dynamic data in the database eav or json

2014-05-02 Thread Eddilbert Macharia
Hello Kirby, thanks for the assist. I had actually checked at this posts, I was wondering if i was to use the hstore or json and eav which in the long run would cause less maintaince issues for a data collection system where users create their own forms to collect data. Regards. Eddilbert

which to use for dynamic data in the database eav or json

2014-05-02 Thread Eddilbert Macharia
Hi guys, I have been trying to decide which approach to use to store dynamic data in the database i.e. data from a survey application in that a user creates there on form like in http://www.wufoo.com/. Storing JSON has its limitation like searching while EAV is generally getting negative

Re: django-mutant

2014-05-02 Thread Eddilbert Macharia
Hi Simon, Sorry for the delayed response, I am trying to create a data collection system. i wanted the user to be able to create their models based on the data they want to collect. i followed the tutorial and also tried the sample application from the tutorial but i got the following error.

django-mutant

2014-04-30 Thread Eddilbert Macharia
Hello Guys, I'm trying to create dynamic models using django-mutant and im having alot problem understandingg what is really happening, i have tried the provided guide http://integricho.github.io/2013/07/22/mutant-introduction/ but i'm still confused, is there any one out there who understands