Re: Tango with Django Tutorial

2014-08-14 Thread Mando
Hi,

you really didn't give good information as to why it failed and why you had 
to populate it manually, perhaps you missed a step in the tutorial?

What is the specific error you are getting when you run the command to 
initially populate the database.

On Wednesday, August 13, 2014 2:47:37 PM UTC-5, darkman237 wrote:
>
> This is one of the tutorials I'm going through. I checked everything and 
> it all to have been entered properly. The initial populate database app 
> didn't work, so I entered the items in manually. While it shows in recent 
> activity that the categories were entered, I do not see the name of the 
> category only the variable name(category). Can't seem to track down the 
> problem. Also likes needs to be defined, but I can't find the part where it 
> enters that in. It's not where I am currently, so I'm a little stumped 
> there as well. Anyone out there that has completed this tutorial and can 
> give me a hand with it would be appreciated.
>
> Thanks!
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/493bffd1-6030-4f75-a11c-88036ce2ac88%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django beginner

2014-07-08 Thread Mando
can you post the output when you run syncdb?

On Tuesday, July 8, 2014 10:13:41 AM UTC-5, Mando wrote:
>
> Is there anything in your models for the other apps ex: photo, events, 
> etc... ? syncdb will not do anything with those until you create your 
> models. Besides that you just need to crate your view and a url pointer to 
> it and you should get a response.
>
>
>
> On Tuesday, July 8, 2014 3:13:14 AM UTC-5, ngangsia akumbo wrote:
>>
>> yes
>>
>>
>>  

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f5fb97ec-541e-4eec-b373-8dface34cc0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: django beginner

2014-07-08 Thread Mando
Is there anything in your models for the other apps ex: photo, events, 
etc... ? syncdb will not do anything with those until you create your 
models. Besides that you just need to crate your view and a url pointer to 
it and you should get a response.



On Tuesday, July 8, 2014 3:13:14 AM UTC-5, ngangsia akumbo wrote:
>
> yes
>
>
>  

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c5f55a23-bb91-44c7-a551-c531b08abb0d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Nginx versus Apache

2013-10-08 Thread Mando
+1 nginx+uWSGI

On Tuesday, October 8, 2013 7:16:42 AM UTC-5, Andréas Kühne wrote:
>
> Hi,
>
> I was wondering, which server would be best for a production environment. 
> Nginx or apache? At the moment we are running both, nginx for static files 
> and apache + mod_wsgi for django. But in the future we will be moving our 
> static assets to S3 and cloudfront, so the reason for using nginx for that 
> will be gone. 
>
> So now I am wondering which of the 2 webservers is the fastest and most 
> efficient in serving a django website?
>
> Regards,
>
> Andréas
>  

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1b3eaf09-e677-4d18-9b45-35cb32b4ee8e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


installation invisible

2013-10-07 Thread Mando
Hi, 

One option would be to set your pythonbrew install in your path. Or Execute pip 
using the absolute path to your python install. Either way you will still need 
to set your path. 

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/95e24bba-c51a-4688-ae57-e1f47a50ae6a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Getting Started with Mac OS X

2013-07-14 Thread Mando
Hi,

This is the way I have it set up my osx


$ sudo pip install virtualenv
$ virtualenv --distribute pytho_projects
$ source python_projects/bin/activate
$ (python projects) pip install django
$ django-admin.py startproject myblog

and that should get you past that. using virtualenv just makes it a lot 
more clean and organized imo. Let me know if that helped you out some.



On Saturday, July 13, 2013 2:25:06 PM UTC-5, Kayode Alayode wrote:
>
> Yea I think they wanted you to add this "*django-admin.py 
> startproject mysite*"  at the cd commandpromopt I am stuck here as well 
> and don't really know how to proceed as well.
>
>
> On Monday, February 27, 2012 7:36:21 PM UTC-5, JChlipala wrote:
>>
>> Hello, 
>>
>> I am a Django beginner, and am trying to get Django set up in Mac OS 
>> X.  I am going through the tutorial, but getting stuck very early 
>> (essentially at the beginning).  I have installed Python and Django. 
>> The next instruction is to enter the command "django-admin.py 
>> startproject mysite".  When I do this, I get the following error: 
>>
>> File "", line 1 
>> django-admin.py startproject mysite 
>> ^ 
>>
>> SyntaxError:  invalid syntax 
>>
>> Does anybody know why I am getting this error?  The tutorial has a 
>> note for Mac OS X users explaining what to do if you get a "permission 
>> denied" error, but that is obviously not what is happening to me. 
>>
>> Thank you for any help!
>
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to create a sessio in django

2013-07-09 Thread Mando
Hey Sivaram,

Here fav_color is just a a variable and you are putting the value of what 
is in request.session['fav_color'] into it

and request.session['fav_color'] is getting the key/value

so think of it this way 

request {
 'session' : { 'fav_color' : 'GREEN' }
}

you are putting GREEN in fav_color

does that make sense?


On Tuesday, July 9, 2013 1:41:29 AM UTC-5, Sivaram R wrote:
>
> I am learning django.
>
> I came accross the django doc about session.
>
> My question is for example if i am having the below models.py
>
> class Report(models.Model):
> user = models.ForeignKey(User, null=False)
> report_number = models.CharField('Incident Number', max_length=100)
> device_id = models.CharField('Device Id', max_length=100)
>
>  In doc,it is given that  fav_color = request.session['fav_color'],
>
> Here fav_color refers to what and ['fav_color'] refers to what.
>
> Need clarification
>

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Kindly help for an interview with Google on python django

2013-01-31 Thread Mando
I don't, but your where I want to be in a couple of years. If you could 
share your experience that would be really helpful

thanks in advance.

Also Good luck! 

On Thursday, January 31, 2013 9:15:11 AM UTC-6, laxglx wrote:
>
> Hello Everybody,
>   I have an interview scheduled on monday with google. So can you 
> anybody have an related information  or any experience. Please help me what 
> would be asked for this interview.
>  I have 2 years of exp in python and django.
>
> Thanks in advance!!!
>
> regards,
>
> Laxmikant 

-- 
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 django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Django and MongoDB

2012-10-26 Thread Mando
you could use pymongo http://api.mongodb.org/python/current/

On Friday, October 26, 2012 3:41:27 AM UTC-5, mh wrote:
>
> Hi,
> what is the current recommendation for using MongoDB with Django? I know 
> about the django-nonrel project, but it bases on Django 1.3, and we're 
> heading to Django 1.5 in few weeks, with ubercool custom User feature.
>
> Anyone would like to share ideas?
>
> Regards,
> Mateusz
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/RXmFOvJrrIQJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: [OT] I've created a Django application that allows you to view flickr galleries with minimalist design

2012-09-22 Thread Mando
hey Great job that's very good is there any chance you would be sharing the 
code?

On Saturday, September 22, 2012 3:44:36 AM UTC-5, Ezequiel wrote:
>
> Hi All, 
>
> I'm a programmer and also an amateur photographer. And looking for a 
> gallery software for my own photo site is that ended up learning is 
> Python, Django and Linux (at my work I use only .net and c#). 
>
> Because I also a flickr user I started to  doing a "frontend" flickr 
> using their API. If you want to try it just have http://flickrock.com/ 
> to go and enter the web address of your photostream or your flickr 
> url. You can also use http://flickrock.com/gsfc (change gscf with your 
> flickr screen name). 
>
> I'll appreciate comments, suggestions and even insults. 
>
>
> Greetings all, 
> Ezequiel. 
> http://flickrock.com/mikelpierre 
>
> PS: On the other hand, if any of you want to have your gallery with 
> same design but with your own domain only have to point it at the same 
> IP of flickrock.com and done. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/UjKKee-idcwJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to use FTP to upload files with Django?

2012-09-05 Thread Mando
here is an example  
http://django-mongodb.org/tutorial.html#uploading-files-to-gridfs it 
suggest using https://github.com/mdirolf/nginx-gridfs in production though

On Wednesday, September 5, 2012 1:25:29 PM UTC-5, Amyth wrote:
>
> To accept i guess as he said , he want his users to be able to upload 
> files...
>
> On Wed, Sep 5, 2012 at 11:53 PM, Kurtis Mullins 
> 
> > wrote:
>
>> Do you want to use FTP to serve or accept the files?
>>
>> On Wed, Sep 5, 2012 at 2:14 PM, Mando >wrote:
>>
>>> Would this work -> nginx-gridfs<https://github.com/mdirolf/nginx-gridfs>
>>> ?
>>>
>>>
>>> On Wednesday, September 5, 2012 1:09:25 AM UTC-5, Chaney Lee wrote:
>>>>
>>>> I just want to allow users uploading some videos to server in my 
>>>> website.I want to use FTP.So ,how to realize it?
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/django-users/-/f-vzQMOMSpoJ.
>>>
>>> To post to this group, send email to django...@googlegroups.com
>>> .
>>> To unsubscribe from this group, send email to 
>>> django-users...@googlegroups.com .
>>> For more options, visit this group at 
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To post to this group, send email to django...@googlegroups.com
>> .
>> To unsubscribe from this group, send email to 
>> django-users...@googlegroups.com .
>> For more options, visit this group at 
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> -- 
> Thanks & Regards
> 
>
> Amyth [Admin - Techstricks]
> Email - aroras@gmail.com , ad...@techstricks.com
> Twitter - @a_myth_
> http://techstricks.com/
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/MfeeXcILYxoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: How to use FTP to upload files with Django?

2012-09-05 Thread Mando
Would this work -> nginx-gridfs ?

On Wednesday, September 5, 2012 1:09:25 AM UTC-5, Chaney Lee wrote:
>
> I just want to allow users uploading some videos to server in my website.I 
> want to use FTP.So ,how to realize it?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/f-vzQMOMSpoJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: bound field object - dynamic forms

2012-09-05 Thread Mando
are you passing it to the template?

On Wednesday, September 5, 2012 7:09:57 AM UTC-5, mjh wrote:
>
> tried {{ issue.x }} x = 0,1,2,3 but nothing is displayed in the template
>
> any other thoughts?
>
> On Monday, 3 September 2012 22:53:03 UTC+1, somecallitblues wrote:
>>
>> Try {{ issue.0}} and {{ issue.1}}
>> On Sep 4, 2012 5:55 AM, "mjh"  wrote:
>>
>>> Hi all - not sure how to show the choicefield dropdown in my template?
>>>
>>> Am generating a dynamic form (note: for issue in issues in forms.py) and 
>>> appending the fields to self.issue_list
>>>
>>> in the template I am looping over these fields ({% for issue in 
>>> form.issue_list %}) and can write out the label {{ issue.label }} but if 
>>> write out {{ issue }} I simply get the bound field object written to 
>>> template ().
>>>
>>> Question is how do I get the html dropdown to display in the template??
>>>
>>>
>>>
>>> >>> forms.py
>>> def __init__(self, item, *args, **kwargs):
>>> super(ItemAnalysisForm, self).__init__(*args, **kwargs)
>>> issue_choice = (('1', 'Reduced'),
>>> ('2', 'Maintained'),
>>> ('3', 'Increased')
>>> )
>>> issues = item.issue.all()
>>>
>>> self.issue_list = []
>>> self.a_list = []
>>> # generate dynamic issue dropdowns...
>>> for issue in issues:
>>> self.fields['issue-' + str(issue.pk)] = 
>>> forms.ChoiceField(label=issue.name, choices=issue_choice, required=False)
>>> self.a_list.append(self.fields['issue-' + str(issue.pk)])
>>> self.issue_list.append(self.fields['issue-' + str(issue.pk)])
>>> self.fields['text'] = forms.CharField(label='text', required=True, 
>>> widget=forms.Textarea(attrs={'rows':25,'cols':'100'}))
>>> self.a_list.append(self.fields['text'])
>>>
>>>
>>> >>> template
>>> {% 
>>> csrf_token %}
>>> 
>>> Individual Issue Outcome:
>>> 
>>> {% for issue in form.issue_list %}
>>> 
>>> {{ issue.label }}: {{ issue }}
>>> 
>>> {% endfor %}
>>> 
>>> 
>>> 
>>> Comment:
>>> 
>>> {{ form.text }}
>>> 
>>>
>>> 
>>>
>>>  -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Django users" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/django-users/-/XSMbUGOJyvMJ.
>>> To post to this group, send email to django...@googlegroups.com.
>>> To unsubscribe from this group, send email to 
>>> django-users...@googlegroups.com.
>>> For more options, visit this group at 
>>> http://groups.google.com/group/django-users?hl=en.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/up3KXt_tm2YJ.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: matching a name in url

2012-09-02 Thread Mando
Yup :) I guess I just needed to take a break for a few because after I came 
back i noticed it and couldn't find my post to reply.


Thanks for the reply though.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/UVnhDlHF3u8J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



matching a name in url

2012-09-01 Thread Mando
Hello all, I'm still new to django and I'm having a little problem with the 
url matching.

here is my line of code
url(r'^comment/allcomments/(?P[-\w]+)/all/$', 
'comment.views.allUserComments'),

def allUserComments(request, commentName):
userComments = Post.objects.get(name=commentName)
return render_to_response('/comment/comments.html', { 'Post': 
userComments })


what i want it to do is similar to the Poll tutorial on 
https://www.djangoproject.com/, but I can't seem to get it to work. I keep 
getting the following after clicking on the user "name"

Using the URLconf defined in Sampleblog.urls, Django tried these URL 
patterns, in this order:

   1. ^$ [name='home']
   2. ^comment/allcomments/(?P[-\w]+)/all/$
   3. ^comment/comments.html$ [name='comment']
   4. ^static/(?P.*)$
   5. ^admin/doc/
   6. ^admin/

The current URL, comment/mando/all/, didn't match any of these.

the comment page shows this with a link for the "name"
Last 5 Comments
mando <http://192.168.1.72:10001/comment/mando/all/> - said on Sept. 1, 
2012, 5:18 p.m
Testing 2

mando <http://192.168.1.72:10001/comment/mando/all/> - said on Sept. 1, 
2012, 5:17 p.m
Testing 12

mando <http://192.168.1.72:10001/comment/mando/all/> - said on Sept. 1, 
2012, 5:17 p.m
 1
is there something i'm missing here? Any suggestions are greatly appreciated

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/D-skLJUDiP4J.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.