I mean, the viewset filters my results based on the user (ie by their token) so why can't it filter from a URL
mcspud
you're whinging because you dont understand what you are doing, and instead of investing the time to solve it you are coming here asking us to solve your problems without any effort yourself
go and do what everyone here has done: struggle, read the source code, and figure out how each part works
does that mean one of the migration scripts has already inserted that column?
mcspud
yep
l2pythan
I assume because it stopped at the 0002_blahblah.py that the error is within there?
if so i tried checking in the previous scripts 0001* and i can't see that being inserted?
ycon_
mcspud: I'd normally do it with a lambda
mcspud
l2pythan - go through each one until you find it
MarkTheMark joined the channel
do what with a lambda ycon_ ?
anddam
mcspud: I'm going with "enjoy the calculus"
mcspud
haha
sidx64 joined the channel
greg_f joined the channel
MarkTheMark has quit
OtherAllan joined the channel
ycon_
mcspud: got it working, used django-filter (no S!!!!) was simple as F
bonestormii_ has quit
ycon_ has quit
beastDivision has quit
ziyangtian has quit
kyern has quit
sidx64
Hello, people! I am back with a few more noobie questions! As advised earlier in this channel, I am planning to work on my Django App using the DRF and PostGres. Apart from the Web App, I also plan to build simple Native Mobile Apps in iOS and Android. My questions today are about security.
kyern joined the channel
How do I go about with https in Django? And I have an LDAP server that provides authentication. How do I get token based Authentication working?
Any good links or advise is greatly appreciated
sjdines has quit
jtiai
sidx64: About HTTPS it's not Django thingy, it's your frontend webserver that takes care of that.
l2pythan
hey mcspud
jtiai
sidx64: Well simplest token based auth requires that you create token for your LDAP user by some means and use that.
sidx64
umm when you say web server, do you mean nginx?
I plan to use nginx as the server
l2pythan
i'm really confused by this
jtiai
sidx64: Also JWTS might be useful. And yes nginx is one of webserver you can use.
beastDivision joined the channel
l2pythan
if
django.db.utils.ProgrammingError: column "analysis_status_date_saved" of relation "base_family" already exists -- should i remove the line from the migration script that it's up to?
arseniy joined the channel
adsworth_ has quit
sidx64
@jtiai thank you.
utegrad has quit
jarshwah_ has quit
l2pythan
hey
when you run ./manage.py migrate
how does it know which migration script it gets up to?
splendor has quit
because after i ran migrate --fake
it now thinks it's completely migrated
sidx64
so @jtiai, I need to first get SSL based HTTPS up and running on my NGINX, and then get Token Based Authentication using JRF's token solution or JWT. IS that about right?
jtiai
sidx64: SSL is easy to do, for example by using let's encrypt.
limbera has quit
n0n0 joined the channel
jas02 joined the channel
jeffspeff
using python 3.5.3 and django 1.10.5. trying to use mysql as db backend. i tried using mysql-connector-python-rf (version 2.2.2) but ran into this bug/error https://code.djangoproject.com/ticket/26113 digging through the change logs between 2.2.2 and 2.1.3 (https://dev.mysql.com/doc/relnotes/connector-py...) it seems that the driver hasn't been updated to support django past version 1.8. I hope I'm missing something, if not, what
is everyone else using?
ycon_ joined the channel
splendor joined the channel
felixx has quit
ticketbot has quit
ticketbot joined the channel
chrisw joined the channel
jarshwah_ joined the channel
jeffspeff has quit
jarshwah_ has quit
n0n0_ joined the channel
sku1d joined the channel
n0n0 has quit
l2pythan has quit
ycon_ has quit
dodobas
yutro
Guard1an has quit
mitaka joined the channel
babyswizz joined the channel
beastDivision has quit
Fush has quit
kuter joined the channel
Arcanewater joined the channel
mitaka has quit
chrisw has quit
jessamynsmith has quit
Arcanewater has quit
Arcanewater joined the channel
beastDivision joined the channel
__marco joined the channel
aaksarin joined the channel
govg joined the channel
tsukasa_ joined the channel
rkj joined the channel
xBlackyII joined the channel
Debnet joined the channel
tsukasa__ has quit
tsukasa_ has quit
whaack has quit
beastDivision has quit
whaack joined the channel
tsukasa_ joined the channel
FinalAngel joined the channel
mitaka joined the channel
brundleticks joined the channel
whaack has quit
vanheckcz joined the channel
tsukasa__ joined the channel
ziyangtian joined the channel
tsukasa_ has quit
Marethyu joined the channel
foxmask
bonjello
Marethyu
Hi, guys ! I have, on each web page, a navigation bar with different links : https://dpaste.de/28Wf . I'd like to make a base template out of it. My problem is that, as you can see, I add "class='active'" to the current page in order to change the color of the link.