Re: Custom Users and ios django questions

2015-07-08 Thread Filipe Ximenes
On Mon, Jul 6, 2015 at 11:47 AM, Lee Kazushi wrote: > Hi everyone, > > I am newbie in django so i'm a bit confused on some features. I have to > do a project for university. It consists in a desktop-web app where > employees can do some staff like handle files, recording files, uploading > files

Custom Users and ios django questions

2015-07-06 Thread Lee Kazushi
Hi everyone, I am newbie in django so i'm a bit confused on some features. I have to do a project for university. It consists in a desktop-web app where employees can do some staff like handle files, recording files, uploading files on a mysql database, and an ios native app (written in object

Re: Lots of django questions

2015-05-21 Thread Lachlan Musicman
0. Yep, just delete your secret key and get a new one - wont affect anything negatively. 2. I put things like menus into the base.html template. It means a little bit of hand coding once, but only once. How to do it depends on your design. I personally am terrible at design, so using bootstrap make

Lots of django questions

2015-05-21 Thread Derek Riemer
Hi guys, A few questions here. First of all, 0. Woopsi, I accidentally pushed my secret key to a public github multiple times (I must be an idiot Lol). Can I simply just change this key to a random string like those on https://www.grc.com/passwords.htm? Luckilly I never really did anything wit

Re: Best Practices Django Questions

2015-01-30 Thread Babatunde Akinyanmi
On 30 Jan 2015 21:03, "G Z" wrote: > > Hello, I'm in the design stages of a site that I'm building. It is going to be a basic social media site for a game I'm designing in unity. I'm not entirely sure how to do some of the things I want to in Django. Thus, my first question is generally best pract

Re: Best Practices Django Questions

2015-01-30 Thread G Z
class User(models.Model): id = models.AutoField(primary_key=True) username = models.CharField(max_length=4000) password = models.CharField(max_length=4000) email = models.CharField(max_length=4000) phone = models.CharField(max_length=4000) profile_image = models.FileField()

Re: Best Practices Django Questions

2015-01-30 Thread G Z
class *User*(models.Model): id = models.*AutoField*(primary_key=True) username = models.CharField(max_length=4000) password = models.CharField(max_length=4000) email = models.CharField(max_length=4000) phone = models.CharField(max_length=4000) profile_image = models.FileField() about = mo

Best Practices Django Questions

2015-01-30 Thread G Z
Hello, I'm in the design stages of a site that I'm building. It is going to be a basic social media site for a game I'm designing in unity. I'm not entirely sure how to do some of the things I want to in Django. Thus, my first question is generally best practices question as well as a how do I

Re: Django questions.

2012-04-25 Thread Kurtis Mullins
Man, I think if you don't know the answers to these questions -- you may not want to apply for that job. Go research and play with NoSQL. Read the documentation on Template Tags -- and realistically, the point of the Templating engine in general. If you don't know about the Data Layer then read the

Re: Django questions.

2012-04-25 Thread Shawn Milochik
On 04/25/2012 11:04 AM, Marcin Tustin wrote: Apologies, these are job application questions: https://www.odesk.com/jobs/Programmers-Python-Django-and-client-side-programming-MySQL_~~c7db577bb2246e77?tot=5000&pos=4&_redirected

Re: Django questions.

2012-04-25 Thread Marcin Tustin
Apologies, these are job application questions: https://www.odesk.com/jobs/Programmers-Python-Django-and-client-side-programming-MySQL_~~c7db577bb2246e77?tot=5000&pos=4&_redirected On Wed, Apr 25, 2012 at 15:37, Marcin Tustin wrote: > These are plainly your homework questions. I suggest that you

Re: Django questions.

2012-04-25 Thread Marcin Tustin
These are plainly your homework questions. I suggest that you undertake your own research. On Wed, Apr 25, 2012 at 15:20, jacob wrote: > Hello everybody. > > I am a newbie in django development and need your help for some > questions. > > 1. Under what circumstances would you avoid using the Dja

Django questions.

2012-04-25 Thread jacob
Hello everybody. I am a newbie in django development and need your help for some questions. 1. Under what circumstances would you avoid using the Django platform? 2. How do you describe the data layer in Django? Where would you place additional functionality to the domain objects? And where would

Re: Couple of basic Django questions

2009-09-12 Thread Mark Freeman
Dan, this link helped me a lot for using my stylesheet and images on the test server. http://docs.djangoproject.com/en/dev/howto/static-files/ Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" gr

Re: Couple of basic Django questions

2009-09-11 Thread Tiago Serafim
Hi, On Fri, Sep 11, 2009 at 10:04 PM, Dan06 wrote: > > 1. Is there supposed to be only one 'view' (controller) file per > application, with all the 'action' functions? Or can there be multiple > different 'view' (controller) files for the same application? If the > latter, how? > > No, you can h

Couple of basic Django questions

2009-09-11 Thread Dan06
I'm in the process of deciding between learning/using django and rails. I've already made a simple site in rails, and now I'm in the process of doing the same with django. However, there are a couple of points I'm stuck on: 1. Is there supposed to be only one 'view' (controller) file per applicat

Re: Django questions

2008-09-11 Thread Krommenaas
thx all, I think I'll give it a spin --~--~-~--~~~---~--~~ 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 unsubscribe from this group, send email

Re: Django questions

2008-09-10 Thread Ned Batchelder
Your view functions are simply Python functions. However you want to use Python to compute an HTML response is fine. Most people choose to use the template engine for that, but you can do whatever you like: def hello_world(request): return HttpResponse("Hello, world") --Ned. http://nedbat

Re: Django questions

2008-09-10 Thread [EMAIL PROTECTED]
Sure, nothing in django forces you to use it's template language(or any other template language), however that's generally advised against just because it leads to bad practices like mixing presentation and business logic. On Sep 10, 1:08 pm, Krommenaas <[EMAIL PROTECTED]> wrote: > Thx for the re

Re: Django questions

2008-09-10 Thread Jorge Bastida
You are in thre wrong list. This is the django-users list , no the django-no-users list. 2008/9/10 Krommenaas <[EMAIL PROTECTED]> > > Thx for the replies. > > This is still unclear though: > > > 4) I read somewhere in the documentation that you can use other > > > templating systems than Django's

Re: Django questions

2008-09-10 Thread Krommenaas
Thx for the replies. This is still unclear though: > > 4) I read somewhere in the documentation that you can use other > > templating systems than Django's own. Is it also possible to just use > > Python inside the views? > > If you use an appropriate templating language that supports that, yes.

Re: Django questions

2008-09-05 Thread Tim Chase
>> 1) Does your webhost need to support Django specifically or >> is it sufficient if they support Python? (e.g. with CakePHP >> you just need general PHP support). > > Just Python will be enough. You can have a copy of Django in > any directory, providing the webserver can be configured to > fin

Re: Django questions

2008-09-05 Thread Malcolm Tredinnick
On Fri, 2008-09-05 at 09:28 -0700, Krommenaas wrote: > Hi, > > I've used Ruby on Rails and CakePHP and am considering using Django > for my next site coz I'm intrigued by Python. I have a few questions > that I couldn't find the answer to in the docs: > > 1) Does your webhost need to support Dj

Django questions

2008-09-05 Thread Krommenaas
Hi, I've used Ruby on Rails and CakePHP and am considering using Django for my next site coz I'm intrigued by Python. I have a few questions that I couldn't find the answer to in the docs: 1) Does your webhost need to support Django specifically or is it sufficient if they support Python? (e.g.

Re: Philosophical Django Questions

2008-05-30 Thread Apreche
On May 30, 12:11 pm, "Richard Dahl" <[EMAIL PROTECTED]> wrote: > As far as the first question, I would create my own group model.  My > reasoning is pretty simple, I create models based on functionality or > purpose of the object.  auth.groups is essentially used to assign > permissions to users,

Re: Philosophical Django Questions

2008-05-30 Thread Richard Dahl
As far as the first question, I would create my own group model. My reasoning is pretty simple, I create models based on functionality or purpose of the object. auth.groups is essentially used to assign permissions to users, you are really looking to associate users with other users. So while it

Philosophical Django Questions

2008-05-30 Thread Apreche
Hi, I'm a long-time developer, and moderately recent Django convert. Because Django is so awesome, and the freely available documentation is so great, I've had very few problems learning django, and getting things done. However, I often find myself battling with more design- level decisions than I

Re: Basic Django questions from a new user

2006-07-07 Thread Kenneth Gonsalves
On 07-Jul-06, at 9:14 AM, Bob wrote: > I'm going to try to create an app called "content" and see if I can > make a web page that loads some content posts. I'm not sure if > that is > the right track, but will give it a try... it'll work -- regards kg http://lawgon.livejournal.com http://

Re: Basic Django questions from a new user

2006-07-06 Thread Bob
ok... Figured it out. That was painful, but I'm impressed. As soon as I finish I'm going to write a really basic tutorial on how to do it... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Basic Django questions from a new user

2006-07-06 Thread Bob
Thanks for your reply. I've already finished lesson 1, 2, and three, and gone into #4, but still not clear. I'm going to try to create an app called "content" and see if I can make a web page that loads some content posts. I'm not sure if that is the right track, but will give it a try... I wi

Re: Basic Django questions from a new user

2006-07-06 Thread Kenneth Gonsalves
On 07-Jul-06, at 8:01 AM, Bob wrote: > I hope I am on the right track here. Are there any basic tutorials on > how to get a basic web site online with Django (not just a polls or > small detail of a web site)? i suggest you go through all four lessons of the tutorial - things will become cle

Basic Django questions from a new user

2006-07-06 Thread Bob
I'm learning Django. I'm just about done with the 4th tutorial, and have printed out the documentation. I'm not a programmer, but know some PHP/MySQL and worked through the first half of a couple of Python books. One thing that I don't understand is how to get a site online. The tutorials for

Re: several django questions, models, apache

2006-01-25 Thread [EMAIL PROTECTED]
removing the trailing ^ is the only way so far, here the httpd where i took ofthe / after "/cefinban and added a ServerName then typing in the browser http://127.0.0.1/cefinban/admin/ if url.py link is (r'^admin/', include('django.contrib.admin.urls.admin')), give me a 404 error The current

Re: several django questions, models, apache

2006-01-24 Thread oggie rob
> You could remove the "^" in the regex to say it matches any strings that > prefixed the intended url pattern: > r'^cefinban/recettes/(?P\d+)/$', > 'cefinban.recettes.views.detail') > to > r'recettes/(?P\d+)/$', 'cefinban.recettes.views.detail') But that doesn't really solve the problem, just

Re: several django questions, models, apache

2006-01-24 Thread Dody Suria Wijaya
greg wrote: i have to modifie my url.py file previously urlpatterns = patterns('', (r'^recettes/$', 'cefinban.recettes.views.index'), (r'^recettes/(?P\d+)/$', 'cefinban.recettes.views.detail'), . ) to (r'^cefinban/recettes/(?P\d+)/$', 'cefinban.recettes.views.detail

Re: several django questions, models, apache

2006-01-24 Thread Adrian Holovaty
On 1/24/06, greg <[EMAIL PROTECTED]> wrote: > That works fine,nowin my template when i do {{recette.difficulte }} i > got the number 1,2 or 3 not the name of the difficulty. > SInce DIFFICULTY_CHOICES is not defined as a global variable and it is > not allowed to put DIFFICULTY_CHOICES in class; >

several django questions, models, apache

2006-01-24 Thread greg
Hello everyone, finally after 3 weeks without Internet and django installed to play with i can ask questions. Firstly about the model, i am doing a recipes website to learn django and / utility. Here is a small part of the recette.py model of recettes app DIFFICULTY_CHOICES = ( (1, 'Si