I didn't know this tip! Shame on me.
Thanks for this
2012/2/22 dummyman dummyman <tempovan@gmail.com>
Hi i fixed the error . I didnt add the parent directory of project to sys.path.append in the standalone script thanksOn Wed, Feb 22, 2012 at 10:35 AM, kalyani ram <arch.kalu3926@gmail.com> wrote:
every time you import something, plz done forget to include that in
installed_apps. this mostly solves the import errors and
templatedoesnotexist errors problem
On Feb 21, 2:28 pm, dummyman efiles and directories securely between remote hosts without starting an FTP session or logging into the remote systems explicitly. The scp command uses SSH to transfer data, so it requires a password or passphrase for authentication. Unlike rcp or FTP, scp encrypts both the file and any passwords exchanged so that anyone snooping on the network can't view them.Warning: Be careful when copying between hosts frdummyman <tempo...@gmail.com> wrote:
> Hi ,
>
> I have a django project and a standalone python script . From the view
> function, i have invoked the standalone script. I am getting the error ."
> No module named <module name >
>
> this is my code for standalone script
>
> import os
>
> os.environ['DJANGO_SETTINGS_MODULE'] = 'myproject.settings'
>
> from django.conf import settings
>
> after that i ve imported the app inside this
> .
>
> from mysite.app.models import some
> but still i am getting the error no module named mysite
> Please help in finding the reason for the error
--
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+unsubscribe@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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment