Thanks, it works now. :D
On Jun 3, 2:14 pm, Kenneth Gonsalves wrote:
> On Fri, 2011-06-03 at 05:07 -0700, Kann wrote:
> > > you have a file called mirnaweb.py - your path should contain only
> > the
> > > parent directory to your mirnaweb directory. Python is now loo
o include the new setting file
to django.wsgi file and telling the sys.path to append the new
PYTHONPATH. I wonder why Python still could not see the modules inside
my django project.
Also, I tried running the "python manage.py shell" again and it's
still looking for the "setting
errors?): No module named mirnaweb
[xxx@lagrange mirnaweb]$ django-admin.py shell --settings='mirnaweb' --
pythonpath='/srv/mirnaweb'
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2
Type "help", "copyright", &q
Dear all,
Thanks so much for help me with the $DJANGO_SETTINGS_MODULE issue. Now
I just installed the wsgi module and try to use apache 2.2.17 to host
the django project. However, the page always throws error. I checked
the log file and it says there's no module named urls. Seems like
python could
Thanks all, that cleared up a lot of my confusions and gave me a
really good lesson. Now I am facing a new problem and will post a new
topic then.
Kann
On Jun 2, 2:41 pm, Kenneth Gonsalves wrote:
> On Thu, 2011-06-02 at 05:29 -0700, Kann wrote:
> > Thanks Oscar, I read the page alread
a
file name? Perhaps, "new_setting.py"?
Kann
On Jun 2, 2:03 pm, Oscar Carballal wrote:
> 2011/6/2 Kann :
>
> > Yep, but what if I just want to load all configurations from the
> > entirely new file. What should be the proper value for me to give to
> > the DJANGO_SETTINGS_MO
alue for me to give to
the DJANGO_SETTINGS_MODULE?
> To know more about the python PATH take a look to the "sys" module in
> the python documentation[1] exactrly the method "sys.path" :)
>
> [1]http://docs.python.org/library/sys.html
Thanks for the link. I am reading it now. :)
create a new additional setting file such as
"setting_new.py", should the DJANGO_SETTINGS_MODULE be configured as
"setting_new.settings?
Kann
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send
the system's Apache and
not using the django.contrib.staticfiles?
Kann
On May 31, 4:51 pm, Ivo Brodien wrote:
> > I am a bit confused about how to set the MEDIA_URL variable here.
> > Currently, I am testing the web using Django embedded webserver and
> > doesn'
Dear all,
I am a bit confused about how to set the MEDIA_URL variable here.
Currently, I am testing the web using Django embedded webserver and
doesn't have a proper url yet. Should my MEDIA_URL be something
like... http://my_machine_name:8000/media/
Kann
On May 26, 12:42 pm, Boštjan
I am just new to programming and not quite familiar with pdb. But I
assume that this is what you are talking about:
http://docs.python.org/library/pdb.html
Perhaps, I will look into it.
Thanks for your suggestions. :)
Kann
On May 31, 3:13 pm, bruno desthuilliers
wrote:
> On May 31, 12:25
elopment server.
Kann
On May 31, 12:19 pm, bruno desthuilliers
wrote:
> On May 31, 11:29 am, Kann wrote:
>
> > Hi All,
>
> > I apologize for now being specific enough. The java script
>
> s/script/application/
>
> Please let's not confuse Java with javascript ;
into my views.py and try to
run it using django. This time, the PNG file was created, but with and
empty image unlike those 2 previous test cases.
Really have no idea what's going on here...
Kann
On May 31, 10:48 am, bruno desthuilliers
wrote:
> On May 31, 10:32 am, Lucian Nicolescu wrote
Dear all,
I tried using python to execute some external java program in my code.
My problem is the os.system(cmd) was not working properly when the
code was included into some view in views.py. However, executing the
code from terminal worked just fine. I am not sure what is wrong here.
this
Thanks Florian, but I am still confused about what's happening. Below
is the concept of my codes and perhaps you can help:
from django.core.files import File
some_file = open('bla/bla/bla/', "rw")
django_file = File(some_file)
t = loader.get_gemplate('somewhere/temp.html')
c = Context({'file':d
ct into my template. Doing somefile.name will only give the file
name on the template, though; but how do I create a downloadable link
for that file from that on my template?
Best,
Kann
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post
Hi Anurag,
That was one of my idea, but what if the table has already been populated
and I don't want to lose the data in the table?
Can I just change the column name manually using SQL and modify the
models.py afterwards?
Kann
On Mon, Apr 18, 2011 at 4:06 PM, Anurag Chourasia <
anura
I
realized the typos and made changes in the "models.py" file and run
the "python manage.py syncdb" again, but it didn't fix the typo in my
column names.
How do i fix the mistakes in the column names after the 'syncdb' is
already run?
Best,
Kann
--
You recei
18 matches
Mail list logo