Re: Need help with a hostel management system project using django

2016-10-30 Thread mulianto
Hi, You can create 3 groups and put each user to specific group. Set the permission on the group an all te group member will have the specified permission for Create, Read, Update, Delete. Mulianto Sent from my iPhone On 30 Okt 2016, at 22:37, YOGITHA A N wrote: > I

Using django pagination or slicing

2016-10-30 Thread ADEWALE ADISA
Hello, Please I need an advice on the best approach to take on the following issues. I have a database table consist of about 1000 record. I need to be displaying like 20 records at a time on a page such that when the user scroll the browser another batches will be append to the browser. Below are

Re: question about returning file (pdf,image,zip...) in a request that made from temporary URL

2016-10-30 Thread ali Eblice
thanks for reply i setup the x-sendfile but there's a problem : django return a x-sendfile response successfully but since i'm using django development area and the development area runs on port 8000 the return response will be on port 8000 but the apache web server runs on port 80 so the

Re: Newbie question - data structure for game

2016-10-30 Thread Derek
You'll probably need jQuery. Bear in mind "size" is not absolute as it will depend on font family and font height. On Sunday, 30 October 2016 01:27:59 UTC+2, Ken Albright wrote: > > Sounds good. Thanks for the advice. Now if I could only figure out how to > get forms to expand and contract to

Re: how to create 2 different kind of user profiles using django python

2016-10-30 Thread ADEWALE ADISA
You can start by designing your warden and student models in which each of them inherit the django inbuilt user model class. Each model would then have attribute that is peculiar to it alone. On Oct 30, 2016 2:53 PM, "YOGITHA A N" wrote: > Hey, > > I am new to django .

Re: Need help with a hostel management system project using django

2016-10-30 Thread YOGITHA A N
I need to create 3 kinds of users with 3 different permissions. One being that of the student , mess contractor and hostel warden. How do I create 3 differnt kinds of login and user profiles. On Sunday, October 30, 2016 at 7:39:56 PM UTC+5:30, bob gailer wrote: > > On Oct 30, 2016 9:53 AM,

Re: how to create 2 different kind of user profiles using django python

2016-10-30 Thread Amandeep Singh
Hi If student and warden have similar attributes and only differ in permission level than you could use the same User model for both of them and to provide different access levels by creating two different authorization groups for student and warden.

Re: Need help with a hostel management system project using django

2016-10-30 Thread Bob Gailer
On Oct 30, 2016 9:53 AM, "YOGITHA A N" wrote: > > I am beginner in django please help me out with my project To help us help you be more specific. What kind of help do you need? > > -- > You received this message because you are subscribed to the Google Groups "Django

how to create 2 different kind of user profiles using django python

2016-10-30 Thread YOGITHA A N
Hey, I am new to django . Please let me know how to create 2 various kind of user profiles in django. I am doing a hostel management system using django where in I have 2 kinds of users one is a student and the other is the warden. -- You received this message because you are subscribed to

Need help with a hostel management system project using django

2016-10-30 Thread YOGITHA A N
I am beginner in django please help me out with my project -- 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

Re: Redirect after Form

2016-10-30 Thread Moreplavec
I found in Django Tutorial solution: https://docs.djangoproject.com/en/1.10/intro/tutorial04/ : Now i have: return HttpResponseRedirect(reverse('crm:company_detail', args=(company.pk,))) #return redirect('views.company_detail', pk=company.pk) And it works fine! -- You received this message

Re: How will I Run the Django Project (https://github.com/django/django) in my laptop ?

2016-10-30 Thread James Bennett
Django by itself does not "run" or do anything. Django only does something when provided with settings and applications. If all you want is to run the test suite, to verify that a change you made to Django itself did something, you can do that by following the instructions in the documentation.

Re: How will I Run the Django Project (https://github.com/django/django) in my laptop ?

2016-10-30 Thread Srinivasulu Reddy
I'm talking about the Django install in github project. Not talking about using django how to create the project. I'm an member in all the groups. How will i contribute the coding part of django. How will i assign tickets to myself ?. How will i run the github django project ? To support the

Re: How will I Run the Django Project (https://github.com/django/django) in my laptop ?

2016-10-30 Thread Srinivasulu Reddy
On Sunday, October 30, 2016 at 4:50:18 PM UTC+5:30, Srinivasulu Reddy wrote: > > Hi Guys, > > How will i contribute to the django project( > https://github.com/django/django) ? I'm trying to install the django > project local laptop. I'm unable to run the project. I changed the project > name

Redirect after Form

2016-10-30 Thread Stanislav Vasko
Greetings, trying to create new app with simple Form to create and update Company info. My view looks like: def company_new(request): if request.method == "POST": form = CompanyForm(request.POST) if form.is_valid(): company = form.save(commit=False)

Re: Migrating custom mysql application to django orm

2016-10-30 Thread pradam programming
hi Yasar, create_dic_of_searchterm = {'searchabletext_id':1,'term':'this'} SearchTerm.objects.create(**create_dic_of_searchterm) you can do like above On Sat, Oct 29, 2016 at 9:33 PM, Yaşar Arabacı wrote: > Hi, > > I am trying to migrate my mysql application into

Re: WOrking with checkbox Multiple Select FIeld - Django Admin

2016-10-30 Thread pradam programming
try to to get all the checked objects using getlist from request store it in a textfield.this is better when you have 20 check boxes then code become too complex and messy On Sun, Oct 30, 2016 at 10:55 AM, M Hashmi wrote: > Form ModelForm if you need to check a single

Re: How will I Run the Django Project (https://github.com/django/django) in my laptop ?

2016-10-30 Thread James Bennett
To install and run Django, I recommend reading through the official Django tutorial, which explains how to install Django and create a project you can work with and run: https://docs.djangoproject.com/en/1.10/intro/ Additionally, there is documentation on how to contribute to Django, which is

How will I Run the Django Project (https://github.com/django/django) in my laptop ?

2016-10-30 Thread Srinivasulu Reddy
Hi Guys, How will i contribute to the django project(https://github.com/django/django) ? I'm trying to install the django project local laptop. I'm unable to run the project. I changed the project name `{{ project_name }}.settings` in django/conf/project_template/project_name/ and run the

Re: Migrating custom mysql application to django orm

2016-10-30 Thread Avraham Serour
SearchableText.objects.filter(searchterm__term__in=('is', 'another')).order_by('searchterm__term') is this what you need? On Sat, Oct 29, 2016 at 7:03 PM, Yaşar Arabacı wrote: > Hi, > > I am trying to migrate my mysql application into django orm. I need help > converting