issue with simple image ordering view

2009-07-25 Thread django user

I have a basic form with that shows user's uploaded images:



{% for photo in photos %}

Order:

{% endfor %}




I'm stuck trying to figure out how to get the post values for each
image in my view. I believe that I can do request.POST.getlist
('image') but that will only get me a list of the "value" list and I
need to correlate each value(photo position) to the photo.id.

All help and advice is appreciated!!!
--~--~-~--~~~---~--~~
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 to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: issue with simple image ordering view

2009-07-26 Thread django user

How would I make a formset for exactly the # of images I have in a
queryset?

On Jul 26, 1:37 am, Daniel Roseman  wrote:
> On Jul 26, 6:13 am, django user  wrote:
>
>
>
> > I have a basic form with that shows user's uploaded images:
>
> > 
> > 
> >     {% for photo in photos %}
> >      > class="handle2" width="150" height="90" alt="test">
> >         Order: > label> > value="{{ photo.position }}" name="image" />
> > 
> >     {% endfor %}
> > 
> >         
> >     
>
> > I'm stuck trying to figure out how to get the post values for each
> > image in my view. I believe that I can do request.POST.getlist
> > ('image') but that will only get me a list of the "value" list and I
> > need to correlate each value(photo position) to the photo.id.
>
> > All help and advice is appreciated!!!
>
> Formsets would seem to be the way to go here. That would give you a
> separate form in the formset for each image, keeping all its
> information together. 
> See:http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#id1
> --
> DR.
--~--~-~--~~~---~--~~
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 to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Multi select field with images

2009-07-31 Thread django user

shameless bump. Still can't figure out how this would be
accomplished...

On Jul 8, 8:01 pm, Tim Boy  wrote:
> What's the best way to make this "custom" widget. I can't find any
> information online with someone making a widget do anything different to the
> actual html of the widget.
>
> TIA
>
> On Wed, Jul 8, 2009 at 12:20 AM, mugisha moses  wrote:
>
> > you have to do a custom select widget .  even if you passed the
> > choices the image urls they would not be rendered.
>
> > On Wed, Jul 8, 2009 at 8:44 AM, ankit rai wrote:
> > > little more explanation is required
>
> > > On Wed, Jul 8, 2009 at 10:31 AM, djangou...@gmail.com <
> > djangou...@gmail.com>
> > > wrote:
>
> > >> I have a modelform and I want to make one of my select multiple fields
> > >> choices be images and not text.
>
> > >> ideas/suggestions appreciated
>
> > >> -- Sent from my Palm Pre
>
> > --
> > 
> > Mugisha Moses
> > P.O. Box 1420 Kampala, Uganda
> >http://appfrica.org
> > skype name :  mossplix
> > twitter: @mugisha
--~--~-~--~~~---~--~~
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 to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Stopping people loging in twice

2009-07-31 Thread django user

I'm interested in a solution for this as well.

I am thinking that a good way might be to rewrite the auth middleware
to check and see if a user login for this user exists and if it does
then remove that login and log in the current user. A message could
then be passed to the login page letting them know that they have
logged in elsewhere and their session at this computer was ended.

I don't know if django has a good way to query if the user is logged
in or not...

On Jul 31, 8:04 am, When ideas fail  wrote:
> Hello, if i am using this generic view in my urls.py?
>
> (r'^accounts/login/$', 'django.contrib.auth.views.login',
> {'template_name': 'myapp/login.html'}),
>
> Is there a way i can stopped people who are already logged in logging
> in again?
>
> Thanks
--~--~-~--~~~---~--~~
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 to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Stopping people loging in twice

2009-07-31 Thread django user

So is there a viable django solution for this problem?

On Jul 31, 7:50 pm, Malcolm Tredinnick 
wrote:
> On Fri, 2009-07-31 at 19:43 -0700, django user wrote:
> > I'm interested in a solution for this as well.
>
> > I am thinking that a good way might be to rewrite the auth middleware
> > to check and see if a user login for this user exists and if it does
> > then remove that login and log in the current user. A message could
> > then be passed to the login page letting them know that they have
> > logged in elsewhere and their session at this computer was ended.
>
> HTTP is a stateless protocol. By design. As has been pointed out in
> another reply in this thread, the concept of "already logged in" is
> therefore no very well defined. Because it implies there is a concept of
> logged out. Which generally doesn't happen. All you can know is that you
> have seen a particular session cookie before. However, you are not
> guaranteed to know that you will never see a session cookie again in the
> future unless the user explicitly tells you to delete it. And that isn't
> always possible. What if you have browser-based sessions, so the cookies
> expires when the browser is closed. And now the user's browser crashes,
> or they shut it down, or their laptop battery runs out? They no longer
> have the cookie and so they cannot tell you to remove it. That's just
> one of a large number of scenarios in which you are setting things up so
> that users will not be able to use your site as a result of fairly
> normal behaviour of themselves and their computers.
>
>
>
> > I don't know if django has a good way to query if the user is logged
> > in or not...
>
> You cannot query for session identifiers by username, no.
>
> Regards,
> Malcolm
--~--~-~--~~~---~--~~
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 to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Generating object documentation from its instance

2007-02-27 Thread django-user

Hi,

(This is not directly related to Django, but would help me in that domain)

I was wondering if there exists some kind of automated documentation generator
(html, pdf, text, whatever readable format) for instanciated objects.

Basic use for me would be to pass a [newform] object, and it would output its
methods (with docstrings), attributes, and if attributes are objects,
recursively build their auto-documentation.

I have used Epydoc, pydoc, and similar tools in the past, but from the
command-line and I believe it reads source code, not analyse an existing
object.

You might have guessed, I am a lazy code reader.
When it comes to newform module, or similar libraries for other projects (did I
say complex?), this would reveal helpful to dig the APIs using live code.

Thanks in advance.

--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



[Newforms] ChoiceField: where to initialize choices

2007-02-28 Thread django-user

Hello,

Considering this basic model:

**
*from django.contrib.auth.models import User
*
*class Meeting(models.Model):
*chairmen = models.ManyToManyField(User, related_name="meetings")
*participants = models.ManyToManyField(User, related_name="participants")
**

How could I build the form to create a new Meeting?
My problem is to initialize the MultipleChoiceField's choices with the same list
of users for both chairmen and participants:

==
=class MeetingForm(forms.Form):
=chairmen = forms.MultipleChoiceField(choices=[(u.id,u.name) for u in
User.objects.all()])
=participants = forms.MultipleChoiceField(choices=[(u.id,u.name) for u in
User.objects.all()])
==

Not DRY enough to me, so I tried initializing choices in the __init__():

==
= (...)
= def __init__(self, *args, **kwargs):
= super(MeetingForm, self).__init__(*args, **kwargs)
= user_list = [(u.id,u.name) for u in User.objects.all()]
= self.fields['chairmen'].choices = user_list
= self.fields['participants'].choices = user_list
==

When displaying this (supposedly unbound) form, it complains about validation
errors, with the luxury of not displaying the users in the HTML output.
I could not find a proper answer to my problem in previous topics on this list.

Any advice on my code would be much appreciated (I know I could use
form_for_model, but I'm trying to learn newforms without its black magic
shortcuts).

Kind regards.

--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Accessing request and session objects from templates

2006-11-04 Thread django-user

Hi,

I am wondering if there is a way to access request data and session object
directly from Django templates, in the same way as {{ user }} for instance.
I must admit I'm a bit lost with template context processors and so on...

Thanks for the tip.

--~--~-~--~~~---~--~~
 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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Status of Oracle support in Django (trunk?)

2006-11-17 Thread django-user

Hi,

Reading the Django Book online, I noticed that Oracle support made its way in
chapter 5. It is the first time I see Oracle mentionned in official Django
material.
The only references I found before are from the 'Boulder Oracle sprint', tickets
87 & 1990 and their numerous patches.

What is the exact status of Oracle support with Django?
Is it fully supported? With caveats? In trunk branch?

In other words, can I finally tell my boss about all the dirty secret stuff I do
with Django and move it to the only RDBMS he knows of? :-)

--~--~-~--~~~---~--~~
 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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Session data remains after logout

2006-11-28 Thread django-user

Hi,

I store user data in sessions, for authenticated users.
When the user logs out (I use the view shortcut
django.contrib.auth.views.logout), his/her session data remains. Is there an
easy way to remove all session data after a user logout? I would prefer to
avoid wrapping the automated logout in a custom view, but looking at the code I
do not see any clue.

Thanks,
Thierry.

--~--~-~--~~~---~--~~
 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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Session data remains after logout

2006-11-29 Thread django-user

Thanks Antonio.
This does not directly solve my problem (linked to an old PHP reflex by the
way), but I'll definitely have a look as it may come in handy later.

I see no 'magic' answer to my problem, and looking at the function
django.contrib.auth.logout(), it's not that hard to wrap around it.

Sunny day.

--~--~-~--~~~---~--~~
 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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Where to start with the upcoming newforms module?

2006-12-08 Thread django-user

Hi,

I came across the new 'newforms' page in Django documentation pages.
I am rather happy to get details about the replacement plan, but it is
definitely lacking information about 'what' it will really replace, and in what
way.

So here I am with a few questions:
1) is this module fully operational yet?
2) does it replace the whole manipulator (automatic/custom) concept?
3) and most important: if so, how?

I'd like a very quick example of code (form creation, and its manipulation in a
view). Where can I get one? I already had a look at the unit test script linked
in the documentation, but I did not quite get the idea for the replacement of
manipulators.

In short: where do I begin to start using 'newforms' ? I'm all lost :-)

Note: I'm actively working on a Django project at work, which I also want to
turn into a 'showcase' for future web development in my department. This is why
I'm looking forward to using "newforms" asap.


--~--~-~--~~~---~--~~
 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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Ho do your Django applications fit in your projects?

2007-01-16 Thread django-user


Hi community,

Been playing with Django for a while now, but I am still confused about the
separation of applications within a project. So far, I end up either
implementing all my features within one Django app, or having too many direct
connections between my apps, making each of them unexportable for reuse in
another project.

I wanted to share my concern, in order to get valuable feedback on effective
independency of Django applications.

Does everyone manage to get loosely coupled applications in their projects? Any
tips to share? Is my twisted mind unrecoverable?

Thanks in advance.

--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Re: Ho do your Django applications fit in your projects?

2007-01-17 Thread django-user


Basically I am working on a very light groupware project, customised for my unit
(in terms of functionalities, workflows, reporting, statistics).

I started a Django project with 3 major features in mind:
1) bug tracking (a la Trac, without any connection to revision control)
2) centralized documentation (some kind of wiki with review and validation)
3) a facility to report meeting minutes and follow actions to be taken

For each of these services (which translated into Django applications), I came
up with shared requirements:
- authentication and access management (per group or user)
- reporting / statistics
- syndication (RSS feeds, mail notifications, etc)

I started implementing these additional requirements as separate Django
applications, and coupled them to the original 3 features (i.e apps). Looking
at all this from a higher level (and a few weeks in standby), I find my
implementation ugly in the sense that I could have done it all in one single
app, having so many connections now between my various applications.

This is why I wanted some advice from experienced Django developers, and what
would be their tips and traps to avoid in order to stick to the spirit of
application separation.

(Note: I have seen a similar concern about decoupling in another post, titled "
Project organization and decoupling" - some general guidelines would benefit
the community)

--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Need advice for model relationship (onetoone inside?)

2007-02-02 Thread django-user

Hi community,

For a smallish app, I want to manage document templates (model: Template) for
documents (model: Document).
Template has a foreign key on Document (many to one relationship).

Now, I want a default Template per Document.
How would I do that?

I thought of various implementations:
- having a field 'is_default' on model Template?
- using OneToOne relationship (though documentation advises not to use that)?
- ... ?

What would you suggest?
What is the most beautiful (djangotic/pythonic) way to implement this "default"
Template for Document, and why?

Thanks in advance.

--~--~-~--~~~---~--~~
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 to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~--~~~~--~~--~--~---



Checking inputs based on a specified data type

2011-06-28 Thread Django user
Hi,

I have a field in my database which contains data type as a text.
Note: these data types will be used when filling up information. How
to based my input in my specified data type as an Admin control?

For example, i have a category of payment and i choose on another
field is "numeric" as a data type. Which means the next input will
based on "numeric" data type. Another example is category of
description having a field of "textfield" and the next input should
accept only textfield.

Help, thanks :)

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



segmentation fault

2015-01-13 Thread Django User
hello
i keep getting the following error messages that state mod_wsgi was already 
loaded and segmentation faults. pls. see an example:

[Tue Jan 13 23:46:11 2015] [error] 
/usr/local/lib/python2.7/dist-packages/pytz/__init__.py:29: UserWarning: 
Module mod_wsgi was already imported from None, but 
/usr/local/lib/python2.7/dist-packages is being added to sys.path
[Tue Jan 13 23:46:11 2015] [error]   from pkg_resources import 
resource_stream
[Tue Jan 13 23:46:12 2015] [notice] child pid 11979 exit signal 
Segmentation fault (11)
[Tue Jan 13 23:46:12 2015] [notice] child pid 11993 exit signal 
Segmentation fault (11)

how do i go about resolving this? 

kindly let me know.

thanks in advance.




-- 
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/5839f545-39e6-48dd-a441-263ccbcf3693%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


implementing dynamic models

2015-03-17 Thread Django User
hello,
we are working on an application where users can register new types of data 
streams through Django. so it requires a mechanism to create new tables 
(cassandra) on the fly. what is the best Djangoish way to implement such 
dynamic models? pls. let us know. thanks in advance. 

-- 
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/59af92ca-940f-40a8-8518-34d33ccce00e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: implementing dynamic models

2015-03-17 Thread Django User
yes, i did. however, none of those approaches look compelling for a 
production system.

On Tuesday, March 17, 2015 at 6:06:11 PM UTC+5:30, Guilherme Leal wrote:
>
> did you looked into some of these 
> <http://stackoverflow.com/questions/7933596/django-dynamic-model-fields/7934577#7934577>
>  
> aproaches?
>
> Em ter, 17 de mar de 2015 às 09:07, Guilherme Leal  > escreveu:
>
>> I REALLY would appreciate some feature like this. If some 
>> developer/engeneer has implemented something like it, please share your 
>> knowledge.
>>
>> The first thing i  would test, is to save the model in a .py file (i 
>> think that saving the model might be important for the performance, since 
>> the python interpreter will compile it and stuff), and in some way reload 
>> de app  (since the models are registered on the app during the 
>> configuration step of the app).
>>
>> Not sure if this would work though...
>>
>> Em ter, 17 de mar de 2015 às 08:27, Django User > > escreveu:
>>
>> hello,
>>> we are working on an application where users can register new types of 
>>> data streams through Django. so it requires a mechanism to create new 
>>> tables (cassandra) on the fly. what is the best Djangoish way to implement 
>>> such dynamic models? pls. let us know. thanks in advance. 
>>>
>>> -- 
>>> 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...@googlegroups.com .
>>> To post to this group, send email to django...@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/59af92ca-940f-40a8-8518-34d33ccce00e%
>>> 40googlegroups.com 
>>> <https://groups.google.com/d/msgid/django-users/59af92ca-940f-40a8-8518-34d33ccce00e%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
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/8746285c-ce5d-4c01-8dc4-02c12fe299df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Please help:ImportError: No module named django

2014-07-24 Thread New Django User
Hi, I have problems with Django in windows 7.

I installed Django using Windows Powershell: 

PS C:\Python27> pip install django
Requirement already satisfied (use --upgrade to upgrade): django in 
c:\anaconda\lib\site-package.

However, when I run "import django" in Python 2.7.6 shell, it showed the 
following error message:

Traceback (most recent call last):
  File "", line 1, in 
import django
ImportError: No module named django

I searched over the internet and did not find useful information. 

Please help.

Many thanks in advance.


-- 
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/b30d3b18-c728-4bd5-8a72-874dd5a065b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Please help:ImportError: No module named django

2014-08-03 Thread New Django User
Matt,

This is what I got in Windows PowerShell:

C:\Anaconda\python.exe: can't open file '2.7.6': [Errno 2] No such file or 
directory.

Thanks.

Xuan

On Thursday, July 24, 2014 4:07:26 PM UTC-4, Matt Gushee wrote:
>
> Hi, Liu Xuan-- 
>
> What result do you get when you do the following? 
>
> Python 2.7.6 
>
> >>> import sys 
> >>> sys.path 
>
> On Thu, Jul 24, 2014 at 1:23 PM, New Django User  > wrote: 
> > Hi, I have problems with Django in windows 7. 
> > 
> > I installed Django using Windows Powershell: 
> > 
> > PS C:\Python27> pip install django 
> > Requirement already satisfied (use --upgrade to upgrade): django in 
> > c:\anaconda\lib\site-package. 
> > 
> > However, when I run "import django" in Python 2.7.6 shell, it showed the 
> > following error message: 
> > 
> > Traceback (most recent call last): 
> >   File "", line 1, in  
> > import django 
> > ImportError: No module named django 
> > 
> > I searched over the internet and did not find useful information. 
> > 
> > Please help. 
> > 
> > Many thanks in advance. 
> > 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > To post to this group, send email to django...@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/b30d3b18-c728-4bd5-8a72-874dd5a065b3%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/350f3ced-e463-48e9-9309-c307a28a06fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Please help:ImportError: No module named django

2014-08-03 Thread New Django User
Matt,

If I typed python in Windows Powershell, I got the following:

Python 2.7.6 | Anaconda 1.9.1 (32-bit)| (default, Nov 11 2013, 10:50:31) 
[MSC v.1500 32 bit (Intel)] on win 32
Type "help", "copyright", "credits" or "license" for more information.

Thanks.

Xuan  


On Thursday, July 24, 2014 4:07:26 PM UTC-4, Matt Gushee wrote:
>
> Hi, Liu Xuan-- 
>
> What result do you get when you do the following? 
>
> Python 2.7.6 
>
> >>> import sys 
> >>> sys.path 
>
> On Thu, Jul 24, 2014 at 1:23 PM, New Django User  > wrote: 
> > Hi, I have problems with Django in windows 7. 
> > 
> > I installed Django using Windows Powershell: 
> > 
> > PS C:\Python27> pip install django 
> > Requirement already satisfied (use --upgrade to upgrade): django in 
> > c:\anaconda\lib\site-package. 
> > 
> > However, when I run "import django" in Python 2.7.6 shell, it showed the 
> > following error message: 
> > 
> > Traceback (most recent call last): 
> >   File "", line 1, in  
> > import django 
> > ImportError: No module named django 
> > 
> > I searched over the internet and did not find useful information. 
> > 
> > Please help. 
> > 
> > Many thanks in advance. 
> > 
> > 
> > -- 
> > 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...@googlegroups.com . 
> > To post to this group, send email to django...@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/b30d3b18-c728-4bd5-8a72-874dd5a065b3%40googlegroups.com.
>  
>
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
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/2c7930d2-1e34-42c9-b9ad-3fefcf97c8a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


consume Google API through REST API

2020-02-26 Thread New Django user
I am new to Django and building a simple webpage where the user can upload 
a file and then that file will be processed using Google API. I am done 
with creating a user login page but not sure how to start with the 2nd part 
i.e. file upload and Google API.

Can anyone help me or suggest some tutorials to start with? I need to use 
REST API to consume Google API.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2eef350b-7db7-42c3-89ed-6263bce3f99c%40googlegroups.com.


Re: consume Google API through REST API

2020-02-26 Thread New Django user
Thanks a lot, Naveen for sharing these tutorials. I will definitely go 
through them and let you know if  I have any additional queries.

On Wednesday, February 26, 2020 at 7:44:58 AM UTC-6, Naveen Arora wrote:
>
> Hi,
>
> Please refer here how to upload a file through Django - 
> https://www.geeksforgeeks.org/python-uploading-images-in-django/. 
> Might be this tutorial of mine help you - 
> https://www.geeksforgeeks.org/python-django-google-authentication-and-fetching-mails-from-scratch/
>
> You can ask here too anytime.
>
> Cheers,
> Naveen Arora
>
> On Wednesday, 26 February 2020 18:00:09 UTC+5:30, New Django user wrote:
>>
>> I am new to Django and building a simple webpage where the user can 
>> upload a file and then that file will be processed using Google API. I am 
>> done with creating a user login page but not sure how to start with the 2nd 
>> part i.e. file upload and Google API.
>>
>> Can anyone help me or suggest some tutorials to start with? I need to use 
>> REST API to consume Google API.
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e59b1c0a-054d-4bee-89e5-b9ae05629aa1%40googlegroups.com.