Open GoogleCodeExporter opened 9 years ago
To be more precise...
Ad3. Take a look on the project by entering
http://127.0.0.1:8000/admin/pages/page/add/
If you set the MEDIA_URL to 'http://127.0.0...' then it's gonna be ok, but then
if
you enter http://localhost:8000/admin/pages/page/add/ again it's gonna be
"broken"
Original comment by slafs.e@gmail.com
on 21 Sep 2009 at 6:53
[deleted comment]
You should set you MEDIA_URL to something like `/media/` .... Don't add the
host name
before the path, it's wrong.
Original comment by batiste....@gmail.com
on 21 Sep 2009 at 7:20
http://docs.djangoproject.com/en/dev/ref/settings/#media-url
so what if i got my page on http://mycompany.foo.bar/ and my static files on
http://media.mycompany.foo.bar/? I don't think it's a bad approach. Django doc
gives
as an example "http://media.lawrence.com"...
Original comment by slafs.e@gmail.com
on 21 Sep 2009 at 8:02
if you use 'http://localhost:8000/media/' then use
'http://localhost:8000/media/'
If you use 'http://127.0.0.1:8000/media/' then use 'http://127.0.0.1:8000/'
I don't understand where is the problem. You should look at 404 in the local
server
console output.
Original comment by batiste....@gmail.com
on 21 Sep 2009 at 9:17
the localhost and 127.0.0.1 was only an example. On production where my project
URL
looks like this: http://mycompany.foo.bar/ I MUST set MEDIA_URL to something
like
this http://media.mycompany.foo.bar/ and that configuration fails. Of course I
can do
a workaround and link media dir so I can access it via
http://mycompany.foo.bar/media/ but it's an ugly trick and I'm not
administrating the
server so I'd like to use prepared configuration for serving static files.
Original comment by slafs.e@gmail.com
on 21 Sep 2009 at 9:45
Oki I finaly understand your problem. Apparently some images and javascript
files are
not following the MEDIA_URL or/and PAGE_MEDIA_URL settings.
This need to be fixed!
Original comment by batiste....@gmail.com
on 21 Sep 2009 at 6:00
In addition I noticed the hardcoded "/media/pages/images/" in
pages/media/pages/javascript/pages_form.js
pages/media/pages/javascript/pages_list.js
Original comment by slafs.e@gmail.com
on 22 Sep 2009 at 5:38
now rev 710 fix this media path bug
Original comment by m.meylan@gmail.com
on 25 Sep 2009 at 9:53
The latest revision still doesn't solve the **real problem** of this issue.
Original comment by slafs.e@gmail.com
on 27 Sep 2009 at 8:41
Original comment by batiste....@gmail.com
on 28 Sep 2009 at 11:27
The issue is in the editor itself:
http://trac.wymeditor.org/trac/ticket/92
When it will be fixed there, I would be able to do something about it
Original comment by batiste....@gmail.com
on 14 Oct 2009 at 2:34
Original issue reported on code.google.com by
slafs.e@gmail.com
on 18 Sep 2009 at 5:02