9:39 AM
uffs
i mean it transforms relative paths to absolute
9:40 AM
sorry, i should have said it clearer
9:40 AM
apollo13
mattmcc: you might wanna take to ansii
9:40 AM
anssi*
9:40 AM
uffs: so where is the static file?
9:41 AM
also, are you in debug mode etc…
9:41 AM
uffs
i am in debug mode, the static file is in {PROJECT_ROOT}/static/test.js
9:41 AM
mattmcc
apollo13: Yeah. It's actually been an issue for me for over a year; even had an email draft to Malcolm that I never sent because it didn't feel substantial enough at the time. :P
9:42 AM
apollo13
uffs: stuff in PROJECT_ROOT/static isn't picked up magically
9:42 AM
jcockhren
I love typos in my templates. especially the one that excludes the analytics script code in production. ;/
9:42 AM
apollo13
your settings never reference PROJECT_ROOT/static as source for staticfiles
9:42 AM
jcockhren: users block it anyways, so…
9:42 AM
uffs
I believe STATIC_ROOT = j('static') does
9:43 AM
def j(*args):
9:43 AM
return os.path.join(os.path.dirname(os.path.realpath(__file__)), '..', *args)
9:43 AM
merlin83 has quit
9:43 AM
apollo13
uffs: no it doesn't -- STATIC_ROOT is ment for collectstatic
9:43 AM
this is where all files will end up, but not where to search for them
9:44 AM
uffs
ok, so how do i make it search for them in there?
9:44 AM
it won't let me add it to STATICFILES_DIRS
9:44 AM
apollo13
I doubt that
9:44 AM
mattmcc
Well, if it's a tuple..
9:45 AM
uffs
swear on me mum
9:45 AM
"The STATICFILES_DIRS setting should "
9:45 AM
ImproperlyConfigured: The STATICFILES_DIRS setting should not contain the STATIC_ROOT setting
9:45 AM
apollo13
yes
9:45 AM
mattmcc
Oh, yeah, you don't want to do that.
9:45 AM
apollo13
cause STATIC_ROOT should be something else
9:45 AM
uffs
oh well
9:45 AM
apollo13
you can't load and write staticfiles to the same dir
9:45 AM
mattmcc
The whole point of STATIC_ROOT is that it's disposable. Nothing lives there.
9:45 AM
uffs
now i am perplexed
9:45 AM
apollo13
you might wanna read the staticfiles docs, especially on collectstatic to understand the difference between those two
9:45 AM
uffs
why does django-pipeline writes it there then?
9:45 AM
epopt37 joined the channel
9:46 AM
mattmcc
Because it's the place that your production server serves static files from.
9:46 AM
z0ran joined the channel
9:46 AM
scott_w has quit
9:46 AM
uffs
i guess i am not supposed to be using it in debug, alright
9:46 AM
apollo13
in debug STATIC_ROOT is never touched
9:47 AM
mattmcc
Right. In development, the idea is that you use the sources.
9:47 AM
apollo13
files are served directly there from the finders
9:47 AM
bad idea, but well…
9:47 AM
scott_w joined the channel
9:47 AM
(not so bad idea actually, but has some implications :()
9:47 AM
uffs
yeah, that's great, but how do i test it?
9:48 AM
apollo13
test what
9:48 AM
uffs
i want to make sure django-pipeline minifies everything all right and treats less and all other special files properly
9:48 AM
apollo13
I never used pipeline, sry
9:48 AM
rafales joined the channel
9:48 AM
jcockhren
uffs: i use pipeline as well. one sec. let me grab a config
9:49 AM
bkuberek joined the channel
9:50 AM
ok. even during testing where DEBUG=True
9:50 AM
k4rtik has quit
9:51 AM
STATICFILES_DIR is traversed when running collectstatic
9:51 AM
and placed in STATIC_ROOT
9:51 AM
you can have the dev server 'serve' the static files
9:52 AM
scott_w has quit
9:52 AM
uffs
alright, thanks everyone
9:52 AM
jcockhren
log story short. use absolutes
9:53 AM
the "output_filename" for the pipeline will be placed in the static root
9:53 AM
merlin83 joined the channel
9:54 AM
bkuberek has quit
9:54 AM
9:56 AM
opalepatrick joined the channel
9:56 AM
uffs
jcockhren: thanks
9:57 AM
moneydouble has quit
9:57 AM
FunkyBob
jcockhren: psst... don't like to dev docs!
9:58 AM
jcockhren
9:58 AM
sedeki joined the channel
9:58 AM
for me, that site always defaults to dev
10:00 AM
jrm2k6 joined the channel
10:00 AM
scott_w joined the channel
10:00 AM
mattmcc
Google has an annoying habit of indexing dev docs higher than release docs.
10:00 AM
kilae joined the channel
10:01 AM
sedeki has quit
10:02 AM
scott_w has quit
10:04 AM
amigo_ joined the channel
10:05 AM
bradfordtoney joined the channel
10:16 AM
the_drow joined the channel
10:17 AM
the_drow
Hi guys, I'm looking for the easiest way to start gunicorn running under SSL. Do you guys know a tutorial that walks me through it?
10:18 AM
ojh has quit
10:19 AM
jcockhren
the_drow: people typically have something running in front of gunicorn
10:19 AM
I for example, use nginx+SSL in front of gunicorn
10:19 AM
the_drow
jcockhren: I'm using this for quick and dirty integration testing (locally. yes, I know it's not really integration testing but that's the best I can do for now)
10:20 AM
Gunicorn has SSL support. I just need a tutorial for how to generate the keys correctly and make Django work with it.
10:22 AM
jcockhren
10:23 AM
kilae has quit
10:23 AM
the_drow
Where should I store these if I am using gunicorn?
10:23 AM
jcockhren
10:23 AM
put them whereever
10:23 AM
the_drow
Got it.
10:24 AM
ASUChander has quit
10:24 AM
msc has quit
10:24 AM
ASUChander joined the channel
10:27 AM
mmcardle joined the channel
10:28 AM
somniac has quit
10:29 AM
loic84 has quit
10:29 AM
hyperair joined the channel
10:30 AM
moneydouble joined the channel
10:30 AM
uffs has quit
10:31 AM
mmcardle has quit
10:32 AM
jax has quit
10:37 AM
amigo_ has quit
10:39 AM
skaflem has quit
10:39 AM
skaflem joined the channel
10:44 AM
moneydouble has quit
10:44 AM
z0ran has quit
10:44 AM
moneydouble joined the channel
10:45 AM
HowardwLo has quit
10:46 AM
tiktuk has quit
10:47 AM
tiktuk joined the channel
10:48 AM
m8 joined the channel
10:49 AM
hyperair has quit
10:50 AM
eka joined the channel
10:50 AM
bkuberek joined the channel
10:50 AM
hyperair joined the channel
10:55 AM
bkuberek has quit
10:57 AM
rafales_ joined the channel
10:58 AM
rafales has quit
10:58 AM
rafales_ is now known as rafales
11:08 AM
the_rat joined the channel
11:09 AM
entiat_blues has quit
11:11 AM
sxn has quit
11:11 AM
sxn joined the channel
11:12 AM
zkanda has quit
11:15 AM
ASUChander has quit
11:15 AM
ASUChander joined the channel
11:16 AM
ASUChander has quit
11:16 AM
ASUChander joined the channel
11:17 AM
Cromulent joined the channel
11:17 AM
tiktuk has quit
11:18 AM
shredding joined the channel
11:19 AM
tiktuk joined the channel
11:19 AM
sayan has quit
11:20 AM
hyperair has quit
11:20 AM
djm- joined the channel
11:21 AM
kushal joined the channel
11:21 AM
hyperair joined the channel
11:22 AM
kaakku has quit
11:23 AM
z0ran joined the channel
11:25 AM
djm- has quit
11:25 AM
loic84 joined the channel
11:27 AM
Prickeltest_1965 joined the channel
11:27 AM
Ariel_Calzada joined the channel
11:28 AM
moneydouble has quit
11:35 AM
hyperair has quit
11:36 AM
hyperair joined the channel
11:42 AM
keving joined the channel
11:44 AM
paulproteus has quit