Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Jan. 31, 2011 04:56:03

v.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Some beginners question


1) I want to read files. Where should I put these files? I am not using a
model to link to the files. And how to discover the path to files? I am
working on windows, and in development environment I am using the full path
to the file.
2) I created my own custom classes, but when I import into views.py, I get
module not found. Why so? My custom classes are inside
application\myclassfolder.

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 athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 31, 2011 08:16:49

Sam L.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Some beginners question


On 31 January 2011 15:55, vishy <vishalsod...@gmail.com> wrote:
> 1) I want to read files. Where should I put these files? I am not using a
> model to link to the files. And how to discover the path to files? I am
> working on windows, and in development environment I am using the full path
> to the file.

Wherever you want to. A little more to the point - what kind of files
are they? Will they be read-only? Where would be the most appropriate
location?

> 2) I created my own custom classes, but when I import into views.py, I get
> module not found. Why so? My custom classes are inside
> application\myclassfolder.

How are you importing them?

I suspect you're missing the blank __init__.py file required before
Python recognizes a directory as a module.

> 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.
>

--
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 athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 24th of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support