which one recommend me? im not familiar with frontend :/
iamriel has quit
FunkyBob
my JS is 5k non-minified
well, VueJS is getting a lot of good press
and can start off very simple
samsagaz
ok, thanks
BigJono
I'd recommend React, but I'm biased :P
rojem joined the channel
samsagaz
well, will search for some tutorial then
letsee which are more detailed :)
Leeds joined the channel
BigJono
Just plain React is real simple code-wise, not overly light in terms of weight though. It's 34.8kb gzipped/minified :S
FunkyBob
BigJono: going with vue they won't have to spend 2 weeks deciding which other parts to use to complete the framework, and another 2 fucking about with configuring tooling :P
lvh has quit
BigJono
FunkyBob: The answer to that is "no other parts" most of the time. Most of the pain is self-inflicted by people that use way too heavy stacks :P
xcesariox joined the channel
lavalamp has quit
rpkilby has quit
polaris has quit
samsagaz
oh, looks complicated :/
as django run backend and vue too :/
negaduck has quit
sasheto has quit
c17r joined the channel
c17r_ joined the channel
PtxDK_ has quit
PtxDK joined the channel
c17r has quit
BigJono has quit
iamriel joined the channel
c17r_ has quit
EyePulp joined the channel
iamriel has quit
chasonchaffin joined the channel
BigJono joined the channel
chasonchaffin has quit
bschool joined the channel
mguy has quit
bschool
I'm currently using Apache and wsgi and virtual host to redirect traffic to my django process. If I have a filepath located in the folder served by apache, lets say abc.com/xyz how do I make it so that Apache does not serve this to Django but instead handles it?
FunkyBob
bschool: you mean mod_wsgi don't you? all django deploys use wsgi
bschool: put an alias for that path, before the wsgi script alias
bschool
ok thank you
and yes i did
Perfect, worked great. Thank you for the quick response
FunkyBob
np
has been years sinced I used apache/mod_Wsgi ... but I remember doing that for /static and /media ... well, just /static... /media didn't exist then :)
bschool
I'm running a forum for discussion about the project. So we started to use the forums for communication and then we got mod_wsgi to work with django and the forums were unavailable lol
didn't i feel like a dunce
FunkyBob
heh
bschool
easy one line fix though, excellent
FunkyBob
this is one thing I like about how I configure nginx, and uwsgi.... I tell them to look for files _before_ calling django
sec^nd has quit
fission6 joined the channel
has the added benefit of being able to override any path, pretty much
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
is the error that i get
when place {% render_bundle 'main' %} in the template
fission6 has quit
b0nn
i Have a text field that typically contains more than 500 characters, I only want to display the first n characters in one template, but the entire content in another template. Is there any example of this being done that I can look at?
Should I just do a for loop on the string in the template? That feels bad
samsagaz
99% sure that the problem is file webpack-stats.json
its empty
schinckel
b0nn: There's truncatechars filter.
sms
Couldn't you just slice it and return it in context