Re: Media Files - local network share

2022-02-08 Thread Swelan Auguste
Thanks for the suggestion. I tried it but it ended up in the app base directory. Can you help me out? On Mon, Feb 7, 2022, 12:03 PM Jiffin George Kokkat wrote: > Hi, > > Mount shared network path to media folder of the Django. > > https://stackoverflow.com/questions/52825610/django-media-root-

Re: Media Files - local network share

2022-02-07 Thread Jiffin George Kokkat
Hi, Mount shared network path to media folder of the Django. https://stackoverflow.com/questions/52825610/django-media-root-pointed-to-network-drive this may help Thanks, Jiffin George Kokkat On Mon, Feb 7, 2022 at 7:41 PM Litesh Garg wrote: > Hi, > > You can use django storages, particularl

Re: Media Files - local network share

2022-02-07 Thread Swelan Auguste
Good day, Thanks for your reply. I was looking into that also, are FTP and SFTP servers a good idea. I was under the impression that it was kind of old technology and was replaced by something bucket s3? Kindly, Swelan R. Auguste (Mr.) KingShip Technical Information Officer 758-489-3909 Webpage

Re: Media Files - local network share

2022-02-07 Thread Litesh Garg
Hi, You can use django storages, particularly ftp or sftp modules for storage and then use nginx to server these files. You can go through documentation here. https://django-storages.readthedocs.io/en/latest/backends/ftp.html On Mon, Feb 7, 2022 at 7:05 AM Swelan Auguste wrote: > Good day, > >

Re: Media Files - local network share

2022-02-06 Thread Swelan Auguste
Good day, Thanks. I was more looking for a local solutions (within a closed network) Kindly, Swelan R. Auguste (Mr.) KingShip Technical Information Officer 758-489-3909 Webpage On Sun, Feb 6, 2022 at 9:19 PM Yeboah Dominic wrote: > You can

Re: Media Files - local network share

2022-02-06 Thread Yeboah Dominic
You can try dropbox that is what I used to serve my media files in django On Sun, 6 Feb 2022 at 20:07, Swelan Auguste wrote: > > Good day all, > > > I am trying to figure out how to attach a Django app to a local network > server/share. > > I do not want to host the media files on the same serve

Re: Media files and download url

2020-05-19 Thread Riska Kurniyanto Abdullah
https://django-storages.readthedocs.io/en/latest/backends/amazon-S3.html You can used that modules and set the ACL. You can jump here, in Vitor article : https://simpleisbetterthancomplex.com/tutorial/2017/08/01/how-to-setup-amazon-s3-in-a-django-project.html then go to the chapter : Mixing publi

Re: Media files and download url

2020-05-14 Thread Parampal Singh
More details please 😊 On Tue, May 12, 2020, 12:52 AM Riska Kurniyanto Abdullah < alternative@gmail.com> wrote: > Amazon S3 have simple solution for that topic > > > On Tue, May 12, 2020 at 1:27 AM Parampal Singh > wrote: > >> Access media vedio files only when user logged in >> >> Temporary

Re: Media files and download url

2020-05-11 Thread Riska Kurniyanto Abdullah
Amazon S3 have simple solution for that topic On Tue, May 12, 2020 at 1:27 AM Parampal Singh wrote: > Access media vedio files only when user logged in > > Temporary file download url every time change > > > Any suggestions on these topics > > -- > You received this message because you are subs

Re: media file upload

2019-09-18 Thread Luca Bertolotti
thanks Il giorno mercoledì 18 settembre 2019 19:29:00 UTC+2, mohammed habib ha scritto: > > Make sure to add ‘enctype="multipart/form-data"’ to your form tag, so > that the file data is included in when the form is submitted > > > https://stackoverflow.com/questions/4526273/what-does-enctype-mul

Re: media file upload

2019-09-18 Thread Luca Bertolotti
Thanks Luca Il giorno mercoledì 18 settembre 2019 19:29:00 UTC+2, mohammed habib ha scritto: > > Make sure to add ‘enctype="multipart/form-data"’ to your form tag, so > that the file data is included in when the form is submitted > > > https://stackoverflow.com/questions/4526273/what-does-encty

Re: media file upload

2019-09-18 Thread mohammed habib
Make sure to add ‘enctype="multipart/form-data"’ to your form tag, so that the file data is included in when the form is submitted https://stackoverflow.com/questions/4526273/what-does-enctype-multipart-form-data-mean Sent from my iPhone > On 18 Sep 2019, at 17:38, Luca Bertolotti wrote: > >

Re: Media files

2018-06-19 Thread Cody “theultimatecasual” Davis
Thank you so much. Sent from my iPhone > On Jun 19, 2018, at 16:56, Jason wrote: > > https://docs.djangoproject.com/en/2.0/howto/static-files/#serving-files-uploaded-by-a-user-during-development > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: Media files

2018-06-19 Thread Jason
https://docs.djangoproject.com/en/2.0/howto/static-files/#serving-files-uploaded-by-a-user-during-development -- 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 dja

Re: Media files

2018-06-19 Thread Cody “theultimatecasual” Davis
Well i have that. My problem really is i can’t find anywhere in the docs that says i need to add that. I’m really just looking for the documentation on it. Sent from my iPhone > On Jun 19, 2018, at 08:06, Akshay Gaur wrote: > > Maybe there is an issue with the way django is serving the docs.

Re: Media files

2018-06-19 Thread Akshay Gaur
Maybe there is an issue with the way django is serving the docs. Try the following: - in your base urls.py, add the following: if settings.DEBUG: urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT) In case this doesn't work, would it be possible for you to p

Re: Media files django 1.5

2013-12-29 Thread Mike Dewhirst
On 30/12/2013 3:18am, Carlos Andre wrote: hello guys, i have a problem in django 1.5! I did a migration from version 1.3 to this and when I migrated projects that have worked in version 1.3 there was no recognition of the media in version 1.5! I made the steps of the tutorial, but the problem sti

Re: Media wiki

2011-09-28 Thread Kevin
You can see a list of all available Django wiki software here: http://www.djangopackages.com/grids/g/wikis/ Also note that Pinax also comes with a wiki App you can use as well, plus many other features. On Sep 28, 6:17 am, Anoop Thomas Mathew wrote: > Hi, > > If you want a basic wiki, you can t

Re: Media wiki

2011-09-28 Thread Anoop Thomas Mathew
Hi, If you want a basic wiki, you can try http://uswaretech.com/demo/djikiki/ Its not maintained well now, still, this might be enough to start with. Thanks, Anoop atm ___ Life is short, Live it hard. On 28 September 2011 14:20, Kirupashankar Sampath wrote: > I am relatively new to django..

Re: Media files not served automatically anymore in 1.3?

2011-08-29 Thread Reinout van Rees
On 27-08-11 17:22, Karen Tracey wrote: On Thu, Aug 25, 2011 at 7:21 AM, Reinout van Rees mailto:rein...@vanrees.org>> wrote: Only, with this 1.3 change django's 1.2's automatic serving of the media_url stuff has gone the way of the dodo. Django 1.2 never did automatic serving of media_

Re: Media files not served automatically anymore in 1.3?

2011-08-27 Thread Karen Tracey
On Thu, Aug 25, 2011 at 7:21 AM, Reinout van Rees wrote: > Only, with this 1.3 change django's 1.2's automatic serving of the > media_url stuff has gone the way of the dodo. Django 1.2 never did automatic serving of media_url, you always had to configure that manually if you wanted it. Karen --

Re: Media files not served automatically anymore in 1.3?

2011-08-25 Thread Reinout van Rees
On 25-08-11 12:08, Reinout van Rees wrote: Two questions: - "Breaking" automatic media_url serving seems worthy of a real note in the 1.3 changelog. That note isn't there. Is this bad? Or am I missing something? Yes, I am missing something... It turns out that django-staticfiles 0.2.0 include

Re: Media files not served automatically anymore in 1.3?

2011-08-25 Thread Uros Trebec
Somehow (I don't remember setting this up) I use https://github.com/divio/django-appmedia with urlpatterns = patterns('', (r'^' + settings.MEDIA_URL.lstrip('/'), include('appmedia.urls')), ) + urlpatterns in urls.py Good luck, Uros On Aug 25, 1:21 pm, Reinout van Rees wrote: > On 25-08-1

Re: Media files not served automatically anymore in 1.3?

2011-08-25 Thread Reinout van Rees
On 25-08-11 13:10, Landy Chapman wrote: Hope this helps: from https://docs.djangoproject.com/en/dev/releases/1.3-beta-1/ The staticfiles app ships with the ability to automatically serve static files during development (if the DEBUG setting is True) when using the runserver management command.

Re: Media files not served automatically anymore in 1.3?

2011-08-25 Thread Landy Chapman
Hope this helps: from https://docs.djangoproject.com/en/dev/releases/1.3-beta-1/ The staticfiles app ships with the ability to automatically serve static files during development (if the DEBUG setting is True) when using the runserver management command. Based on feedback from the community thi

Re: MEDIA and STATIC in a nutshell?

2011-05-15 Thread Stuart MacKay
Eiji, The documentation for MEDIA_URL and STATIC_URL is correct and quite clear - once you understand what it is telling you. I also had suffered the same confusion when I stated using Django and English is my first language. In general the Django documentation is comprehensive but concise.

Re: MEDIA and STATIC in a nutshell?

2011-05-15 Thread Eiji Kobayashi
Shawn, Thank you. For the compliment and your help. I'll try putting the static folder in my apps and try. Yes, the Japanese documentation is still stuck in 1.0, but there are other places to look. But I often use the English docs as last resort, because the language is so difficult for us. I hav

Re: MEDIA and STATIC in a nutshell?

2011-05-14 Thread Shawn Milochik
Eiji, Sorry to hear about the Japanese translation being out-of-date. I just checked and saw that it's extremely old. The development of Django moves too quickly to rely on static documentation. I don't know of any alternatives to the English version if you want to remain current, but in any

Re: MEDIA and STATIC in a nutshell?

2011-05-14 Thread Shawn Milochik
Eiji, If you put a folder in each app named 'static' it will automatically be used when you run 'manage.py collectstatic.' You only need to specify additional directories if you want to pull static media from somewhere else, of if you named your static folders something other than 'static' i

Re: MEDIA and STATIC in a nutshell?

2011-05-14 Thread Eiji Kobayashi
Thanks Shawn, I didn't read the documentation as thoroughly as I should have. And I know that I should read the English version rather than relying on the outdated, Japanese version. But this is good, as I need to learn English more. I modified the urls.py according to the docs, and the MEDIA_URL,

Re: MEDIA and STATIC in a nutshell?

2011-05-14 Thread Shawn Milochik
It sounds like all your issues with these features are a result of not reading the documentation. Feel free to ignore these optional features and do things the hard way if you feel like it. On the other hand, you could invest a small amount of time in understanding them and get the benefits.

Re: MEDIA and STATIC in a nutshell?

2011-05-14 Thread Eiji Kobayashi
Exactly. Perhaps we should just ignore MEDIA and STATIC variable setup in the settings file altogether. When I couldn't get the variables to work like how I thought they should work, I just put the following stuff in the Apache vhost config file: Alias /media /Users/eiji/Sites/assets/media Alias

Re: MEDIA and STATIC in a nutshell?

2011-05-13 Thread km
Hi, On Sat, May 14, 2011 at 10:24 AM, Shawn Milochik wrote: > Did you read the docs? > http://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/ > > To use the staticfiles app you need to not only put the right things in > settings.py, but also run manage.py collectstatic to gather up all yo

Re: MEDIA and STATIC in a nutshell?

2011-05-13 Thread Shawn Milochik
Did you read the docs? http://docs.djangoproject.com/en/1.3/ref/contrib/staticfiles/ To use the staticfiles app you need to not only put the right things in settings.py, but also run manage.py collectstatic to gather up all your static content, then rsync/copy/whatever that content to the prope

Re: media-admin missing gifs

2010-11-10 Thread Karen Tracey
On Wed, Nov 10, 2010 at 3:25 PM, Anderson Goulart wrote: > > Hello, > > I am just trying to modify django-admin templates and everything appears to > work except icon_calendar.gif which does not appear. I set > ADMIN_MEDIA_PREFIX = '/media_admin/' in settings.py, but it insists it is > not defined

Re: Media Server

2010-04-03 Thread Daniel Roseman
On Apr 3, 1:10 pm, Enpaksh wrote: > Yes tht is a posibility too and i have tried tht approach but the   > issue is tht there are lot of html files in my app and i am trying to   > avoid writing any explicit url because thn i have to keep track of all   > the pages tht reference to the media server

Re: Media Server

2010-04-03 Thread Enpaksh
Yes tht is a posibility too and i have tried tht approach but the issue is tht there are lot of html files in my app and i am trying to avoid writing any explicit url because thn i have to keep track of all the pages tht reference to the media server in tht fasion. Can't i define my server

Re: Media Server

2010-04-03 Thread Daniel Roseman
On Apr 2, 8:49 pm, Enpaksh wrote: > Thanks this was my understanding. It looks like i have to route the   > url to view and thn make a call urlopen().read() to fetch the file   > from different server. > > Enpaksh Airon > Sent from my iPhone No! This is completely the wrong approach! If you do th

Re: Media Server

2010-04-03 Thread orokusaki
Absolutely not. You're thinking of everything from a "how does it relate to my python program" standpoint. Using a media server has nothing to do with django from a programming stand point. Python is a great language but urlopen.read() is certainly not sufficient for handling your media requests. Y

Re: Media Server

2010-04-02 Thread Sam Lai
On 3 April 2010 06:49, Enpaksh wrote: > Thanks this was my understanding. It looks like i have to route the url to > view and thn make a call urlopen().read() to fetch the file from different > server. I'm not too sure how to do it with apache2, but can't you just proxy off any requests coming to

Re: Media Server

2010-04-02 Thread Enpaksh
Thanks this was my understanding. It looks like i have to route the url to view and thn make a call urlopen().read() to fetch the file from different server. Enpaksh Airon Sent from my iPhone On Apr 2, 2010, at 3:20 PM, orokusaki wrote: On Apr 2, 11:30 am, Dexter wrote: Hi, Can someone

Re: Media Server

2010-04-02 Thread Daniel Roseman
On Apr 2, 4:21 pm, Media Server setup wrote: > Hello, > > I have recently setup a Media server on a different box which I would > like to use to serve static files to my django application. I > personally find django documentation to be vague on this particular > topic and I was hoping if someone

Re: Media Server

2010-04-02 Thread orokusaki
On Apr 2, 11:30 am, Dexter wrote: > Hi, > > Can someone please > > explicitly specify what needs to go in MEDIA_URL and MEDIA_ROOT and > > how does urls.py routes to a cross domain media server. I am not > > interested in any local directory structure to accomplish this task > > because that is in

Re: Media Server

2010-04-02 Thread Dexter
Hi, I don't have any experience with lighthttpd, but I guess you shouldn't use django for serving your static files. You should redirect your domain.tld/media folder to your box using lighthttpd or apache. Grtz, Dexter On Fri, Apr 2, 2010 at 5:21 PM, Media Server setup wrote: > Hello, > > I hav

Re: Media Root & Templates

2009-03-02 Thread AKK
I added a comma and it worked fine. And i've learned something, i only thought you needed a comma if there where multiple items. Many Thanks, Andrew On 2 Mar, 00:10, Malcolm Tredinnick wrote: > On Sun, 2009-03-01 at 14:40 -0800, AKK wrote: > > Is this what you mean? > > > TEMPLATE_CONTEXT_PROC

Re: Media Root & Templates

2009-03-01 Thread Malcolm Tredinnick
On Sun, 2009-03-01 at 14:40 -0800, AKK wrote: > Is this what you mean? > > TEMPLATE_CONTEXT_PROCESSORS = ( > "django.core.context_processors.media" > ) If that's a cut-and-paste, then you need a trailing comma. In Python ("a") is not a 1-tuple, it's the string "a". ("a",) -- with a trailing

Re: Media Root & Templates

2009-03-01 Thread AKK
Is this what you mean? TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.media" ) regards, Andrew On 1 Mar, 18:33, Brian Morton wrote: > From the traceback, it would appear that one or more of your > processors is named or formed improperly.  Can you post the code from > you

Re: Media Root & Templates

2009-03-01 Thread Brian Morton
>From the traceback, it would appear that one or more of your processors is named or formed improperly. Can you post the code from your setting.py file where you specify your processors? Not just the strings, but the entire Python structure where you define those. On Mar 1, 7:51 am, AKK wrote:

Re: Media Root & Templates

2009-03-01 Thread AKK
Having looked at the traceback i gather its something to do with the imports: Environment: Request Method: GET Request URL: http://localhost:8080/ Django Version: 1.0.2 final Python Version: 2.5.2 Installed Applications: ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.se

Re: Media Root & Templates

2009-02-28 Thread Malcolm Tredinnick
On Sat, 2009-02-28 at 18:11 -0800, AKK wrote: > Thank you. I had forgotten the context instance part but now i've > added that as below: > > "render_to_response('blogSite/index.html', locals(), > context_instance=RequestContext(request))" > > and i get: > > Exception Type: ValueError > E

Re: Media Root & Templates

2009-02-28 Thread AKK
Thank you. I had forgotten the context instance part but now i've added that as below: "render_to_response('blogSite/index.html', locals(), context_instance=RequestContext(request))" and i get: Exception Type: ValueError Exception Value: Empty module name but if i take out reque

Re: Media Root & Templates

2009-02-28 Thread Malcolm Tredinnick
On Sat, 2009-02-28 at 15:13 -0800, AKK wrote: > Actually i thought i have but i haven't, i added: > > TEMPLATE_CONTEXT_PROCESSORS = ( > "django.core.context_processors.media" > ) Keep in mind that that will remove all the other context processors, which might not be what you want. T

Re: Media Root & Templates

2009-02-28 Thread AKK
Actually i thought i have but i haven't, i added: TEMPLATE_CONTEXT_PROCESSORS = ( "django.core.context_processors.media" ) to my settings.py (it didn't seem to be in there by default, i don't know if thats supposed to be the case). Then when it didn't work i tried creating a simple template

Re: Media Root & Templates

2009-02-28 Thread AKK
Managed to get it working. Thanks for the help. Andrew On 28 Feb, 00:36, Malcolm Tredinnick wrote: > On Fri, 2009-02-27 at 11:53 -0800, AKK wrote: > > Sorry I must mean the media url. Are the media_root and the media_url > > automatically linked? > > No. The MEDIA_ROOT (capitalisation is import

Re: Media Root & Templates

2009-02-27 Thread Malcolm Tredinnick
On Fri, 2009-02-27 at 11:53 -0800, AKK wrote: > Sorry I must mean the media url. Are the media_root and the media_url > automatically linked? No. The MEDIA_ROOT (capitalisation is important) setting is a storage path. It could be anywhere. It's then up to you to configure your webserver so that

Re: Media Root & Templates

2009-02-27 Thread AKK
Sorry I must mean the media url. Are the media_root and the media_url automatically linked? In my settings.py i have: C:/Program Files/Apache2.2/myproject/ media/ as the root & http://localhost:8080/akonline/media/ as the url and i have an image (imgs/img.jpg) in my C

Re: Media Root & Templates

2009-02-26 Thread Malcolm Tredinnick
On Thu, 2009-02-26 at 17:04 -0800, AKK wrote: > Hi, > > I have a template and I want to get some images out of my media root. > I was wondering is there anyway to automatically return the media root > from settings.py rather than manually specifying it rather each time. You are probably wanting

Re: Media Root & Templates

2009-02-26 Thread Chris Czub
if you include the django.core.context_processors.media context processor http://docs.djangoproject.com/en/dev/ref/templates/api/?from=olddocs#django-core-context-processors-media On Thu, Feb 26, 2009 at 8:04 PM, AKK wrote: > > Hi, > > I have a template and I want to get some images out of my

Re: media-serving hell!

2009-01-30 Thread DrKayBee
Quick update: I can see the directory listing under http://mydomain.com/media/ On Jan 30, 10:22 am, DrKayBee wrote: > I'm having a ridiculously tough time trying to figure out how to serve > static media. Here's the state of the website: > Templates being found properly (although without css /

Re: media files apache/modpython windows

2009-01-29 Thread May
Ok, I think I finally got it! In order to use my css template as a django inherited base.html(which is under folder-template) I have to place my html(ex. index.html) pages under the same folder "template", which is specified as a directory path in the settings.py file under TEMPLATE_DIRS: 'C:/fol

Re: media files apache/modpython windows

2009-01-28 Thread Brian Neal
On Jan 28, 3:51 pm, Karen Tracey wrote: > On Wed, Jan 28, 2009 at 3:39 PM, May wrote: > > > Hello, > > > I have the admin templates with CSS working under local server windows/ > > apache/modpython.  Now I would like to get my site css files to work > > under apache. > > > The settings and http

Re: media files apache/modpython windows

2009-01-28 Thread Karen Tracey
On Wed, Jan 28, 2009 at 3:39 PM, May wrote: > > Hello, > > I have the admin templates with CSS working under local server windows/ > apache/modpython. Now I would like to get my site css files to work > under apache. > > The settings and http.conf code is here: > http://dpaste.com/114010/ > > I

Re: Media classes in admin.py are only used on add/change page?

2008-12-16 Thread 3lancer.eu
Hi, > Media classes are part of the form framework. The changelist page is > not a form, so it doesn't get the media class. I don't think this is > likely to change. Ahaaa... Okay, thanks! > In any case, I'd say that the media requirements for forms are > different from changelists anyway. As y

Re: Media classes in admin.py are only used on add/change page?

2008-12-16 Thread Daniel Roseman
On Dec 16, 6:48 pm, "3lancer.eu" wrote: > Hi, > > As I read > onhttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#modeladmin-me..., > the files defined in Media classes' js and css attributes will only be > added to html on the add/change page. So as far as I understand, it's > only possib

Re: Media and putting javascript last

2008-11-20 Thread Wes Winham
> Any reason this wouldn't work for you as well? The problem with that is that when I do {{ form.media.js }} (or whatever media output stuff I need to do) at the bottom, I'm going to have included jquery twice since jquery is a requirement in the Media class of any widgets/forms that need it. The

Re: Media and putting javascript last

2008-11-18 Thread Justin Lilly
The way I structure this is I put my jquery include at at the top with the css. At the bottom of my script, I add an {% block extra_script %} {% endblock %} block just before the tag which is where excess javascript goes. Any reason this wouldn't work for you as well? -justin On Nov 18,

Re: media server implementation - context processor, custom template tag, or custom filter

2008-06-23 Thread phillc
that is an extremely complex problem for such small problem... if you are worried about caching, just append a number to the file or add a date to it. On Jun 22, 6:48 pm, alex <[EMAIL PROTECTED]> wrote: > I already have {{ MEDIA_URL }} set in html, css, and js templates and > that's working grea

Re: Media variables confusion

2008-06-18 Thread scorpioxy
On Jun 17, 11:59 pm, Joel Bernstein <[EMAIL PROTECTED]> wrote: > Generally, Django could not care less where you put most of your > static media files. There are two main exceptions, though: > > 1. Django needs to know the URL to the media files for its admin > application (ADMIN_MEDIA_PREFIX) >

Re: Media variables confusion

2008-06-17 Thread Joel Bernstein
Generally, Django could not care less where you put most of your static media files. There are two main exceptions, though: 1. Django needs to know the URL to the media files for its admin application (ADMIN_MEDIA_PREFIX) 2. Django needs to know where in the server's filesystem it should put newl

Re: Media variables confusion

2008-06-17 Thread Bartek Gniado
You need MEDIA_ROOT because yes, you serve it from static.serve view during development but when you launch you do not want to be using the devserver to display your site. MEDIA_URL is essentially the same url you map through Apache, lighthttpd, whatever you use But you are right, you can use the

Re: Media Files

2008-01-16 Thread mOne
New at this so I appreciate all the help. Thanks! On Jan 16, 2:04 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Jan 16, 2008 11:39 AM, mOne <[EMAIL PROTECTED]> wrote: > > > What I want to do is have the admin files, and the media files within > > the mysite directory. This way I can edit the

Re: Media Files

2008-01-16 Thread Karen Tracey
On Jan 16, 2008 11:39 AM, mOne <[EMAIL PROTECTED]> wrote: > What I want to do is have the admin files, and the media files within > the mysite directory. This way I can edit them accordingly and copy > the directory and just re-skin it for another client to use as a base. > Hope that makes sense.

Re: Media Files

2008-01-16 Thread mOne
What I want to do is have the admin files, and the media files within the mysite directory. This way I can edit them accordingly and copy the directory and just re-skin it for another client to use as a base. Hope that makes sense. So in essence I want to have a main directory djcode and then with

Re: Media Files

2008-01-16 Thread Karen Tracey
On Jan 16, 2008 9:59 AM, mOne <[EMAIL PROTECTED]> wrote: > > Hi, > > I have made all these changes and I am still getting this error in > Terminal. I can't seem to redirect straight to my files. > > [16/Jan/2008 10:01:48] "GET /admin/~/Users/sptxk/djcode/mysite/bnStyle/ > media/css/dashboard.css H

Re: Media Files

2008-01-16 Thread mOne
Hi, I have made all these changes and I am still getting this error in Terminal. I can't seem to redirect straight to my files. [16/Jan/2008 10:01:48] "GET /admin/~/Users/sptxk/djcode/mysite/bnStyle/ media/css/dashboard.css HTTP/1.1" 404 3600 [16/Jan/2008 10:02:07] "GET /admin/auth/user/ HTTP/1.

Re: Media Files

2008-01-15 Thread mOne
Thanks a lot Karen! On Jan 15, 3:15 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Jan 15, 2008 2:21 PM, mOne <[EMAIL PROTECTED]> wrote: > > > > > Karen, > > > 1. In setting.py my media root is set to /Users/sptxk/djcode/mysite/ > > bnStyle/media/ > > Note MEDIA_ROOT has nothing to do with se

Re: Media Files

2008-01-15 Thread Karen Tracey
On Jan 15, 2008 2:21 PM, mOne <[EMAIL PROTECTED]> wrote: > > Karen, > > 1. In setting.py my media root is set to /Users/sptxk/djcode/mysite/ > bnStyle/media/ Note MEDIA_ROOT has nothing to do with serving static files/css. It's used when uploading files to your server. > 2. in urls.py (r'^si

Re: Media Files

2008-01-15 Thread mOne
Karen, 1. In setting.py my media root is set to /Users/sptxk/djcode/mysite/ bnStyle/media/ 2. in urls.py (r'^site_media/(?P.*)$', 'django.views.static.serve', {'document_root': '/Users/sptxk/djcode/ mysite/bnStyle/media/'}), 3. My css files are located /Users/sptxk/djcode/mysite/bnStyle/media/

Re: Media Files

2008-01-15 Thread Karen Tracey
On Jan 15, 2008 2:03 PM, mOne <[EMAIL PROTECTED]> wrote: > > Karen, > > I am in dev. Is there any other way in dv other than the static files? > > If you want your CSS served by the development server, the static server is the way to do it. Is that not working for you? If so, provide some specif

Re: Media Files

2008-01-15 Thread mOne
Karen, I am in dev. Is there any other way in dv other than the static files? Tom On Jan 15, 2:01 pm, "Karen Tracey" <[EMAIL PROTECTED]> wrote: > On Jan 15, 2008 1:56 PM, mOne <[EMAIL PROTECTED]> wrote: > > > > > I am having trouble getting my CSS files to work. The templates for > > the admin

Re: Media Files

2008-01-15 Thread Karen Tracey
On Jan 15, 2008 1:56 PM, mOne <[EMAIL PROTECTED]> wrote: > > I am having trouble getting my CSS files to work. The templates for > the admin section are working, but in the settings.py file I cannot > get the CSS to work. > > Please Help. > What server -- development, apache, something else? If

Re: media directory for testing

2007-11-11 Thread Amit Ramon
Another solution is to use environment variables for the settings that are different. You can then use the same settings file for all different environments. All you have to do is to read the environment variables in the settings file, something like: DATABASE_NAME = os.environ["DATABASE_NAME"

Re: media directory for testing

2007-11-10 Thread Malcolm Tredinnick
On Sat, 2007-11-10 at 16:52 -0500, Faheem Mitha wrote: > > Hi. > > I'm having the following problem while testing. I'm writing a unit test > for a file upload (using newforms). This works. However, the file gets > written to the same media directory as is used in normal work. I'd prefer > th

Re: media

2007-09-20 Thread AniNair
Thank you. It's working now... --~--~-~--~~~---~--~~ 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 [

Re: media

2007-09-20 Thread Alaa Salman
Hi, Yes serving static files is for this use. Any kind of asset for your application that is not dynamic in nature would ofcourse be static(so images, css, javascript and so on). And so, follow the directions in that help file and it will solve your problem. Moreover, when something doesn't work

Re: media

2007-09-20 Thread AniNair
I tried that.. It's just for serving static files. I don't know why but i believed that it should've displayed the html page correctly at the first time itself. Where am I wrong? Plz help --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: media

2007-09-20 Thread AniNair
thanks alot... I wanted to serve an html page which has an image. For eg: there is a welcome page which asks the user to log in. It shows an image (a company logo)on top along with the form. This image will appear on top of all the pages. Is serving static files the solution? Just wanted to make

Re: media

2007-09-20 Thread Samuel Adam
http://www.djangoproject.com/documentation/static_files/ --~--~-~--~~~---~--~~ 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 t

Re: media

2007-09-20 Thread AniNair
I am a beginner... needs help ... trying to do this like In my view i just return render_to_response('welcome.html',) And in the html page, I have an image This works fine and the image is displayed when I try to open it with explorer or any other browser but when I try to run localhost:8000,

Re: media urls in templates

2007-04-10 Thread James Bennett
On 4/10/07, Udi <[EMAIL PROTECTED]> wrote: > You can create a custom context processor that fetches the base media > url from your settings file and makes it available to the templates. I haven't yet officially "released" it, but I've been working on a small application which bundles a lot of use

Re: media urls in templates

2007-04-10 Thread Udi
You can create a custom context processor that fetches the base media url from your settings file and makes it available to the templates. Check this out: http://www.b-list.org/weblog/2006/06/14/django-tips-template-context-processors On Apr 4, 11:02 am, "akonsu" <[EMAIL PROTECTED]> wrote: > he

Re: media files during developments

2007-01-10 Thread Jeremy Dunck
On 1/9/07, archie <[EMAIL PROTECTED]> wrote: > In the settings.py file I set the MEDIA_ROOT to be the one > where the css is and I added to urls the command > (r'^site_media/(.*)$', Where django.views.static, {'document_root': > settings.MEDIA_ROOT, 'show_indexes': True}). > However no sign of dja

Re: media files with django dev-server

2006-10-28 Thread patrickk
Am 26.10.2006 um 16:21 schrieb orestis: > >>> (1) to use the dev server >>> (2) no changes when moving to production >>> (3) to have core and non-core content served out of the >>> ADMIN_MEDIA_PREFIX prefix. >> >> 1 and 2 is true (especially 2). >> 3 not ... I don´t care serving admin_media with

Re: media files with django dev-server

2006-10-26 Thread orestis
> > (1) to use the dev server > > (2) no changes when moving to production > > (3) to have core and non-core content served out of the > > ADMIN_MEDIA_PREFIX prefix. > > 1 and 2 is true (especially 2). > 3 not ... I don´t care serving admin_media with a different prefix. > Why don't you follow my

Re: media files with django dev-server

2006-10-26 Thread patrickk
thanks everybody for the patience and the detailed answers. using --adminmedia might be a solution. I can´t check that, because on that specific server we´re on 0.95. guess I´m giving up on this issue and stay with the symlink from / django/contrib/admin/media/. still, some notes below. Am

Re: media files with django dev-server

2006-10-25 Thread Malcolm Tredinnick
On Wed, 2006-10-25 at 14:58 +0200, patrickk wrote: > thanks malcolm, I think we´re getting closer ... > > Am 25.10.2006 um 14:42 schrieb Malcolm Tredinnick: > > > > > On Wed, 2006-10-25 at 14:13 +0200, patrickk wrote: > >> sorry for being a pain in the neck, but we´re about to go online with > >

Re: media files with django dev-server

2006-10-25 Thread Istvan Albert
There is an option to manage.py --adminmedia=ADMIN_MEDIA_PATH that might just do what you need. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us

Re: media files with django dev-server

2006-10-25 Thread orestis
Look, there are two distinct things here: a) The admin media, which physically resides on django/contrib/admin/media and which the dev-server serves automagically and b) Your own media, which you are responsible of serving, either in production or development mode Here's what I do: For admin me

Re: media files with django dev-server

2006-10-25 Thread patrickk
thanks malcolm, I think we´re getting closer ... Am 25.10.2006 um 14:42 schrieb Malcolm Tredinnick: > > On Wed, 2006-10-25 at 14:13 +0200, patrickk wrote: >> sorry for being a pain in the neck, but we´re about to go online with >> our site and I desperately need to solve this problem. > > You al

Re: media files with django dev-server

2006-10-25 Thread Malcolm Tredinnick
On Wed, 2006-10-25 at 14:13 +0200, patrickk wrote: > sorry for being a pain in the neck, but we´re about to go online with > our site and I desperately need to solve this problem. You already mentioned that you have solved it using lighttpd (or, at least, that's what you seem to have mentioned)

  1   2   >