have blog/new_post come before blog/categoryname so if you ever route to blog/new_post it will go to your new_post view
create a blacklist of category names that cannot be created, like new_post
check against that blacklist on your new category create view
webpigeon has quit
techno_x64 has quit
Troy1 joined the channel
KotoRez
@Ryanar is this a common practice or is it a work around to something that is done wrong in the first place?
elnygren joined the channel
Ryanar
its not something done wrong, its just you need to make an exception if you want that url pattern
I actually found a bug with medium.com, they use the same pattern you described
afuentes joined the channel
and I created a blog that existed with a name like new_post and it stopped people from going to the new_post url
so you just need to be wary of it
milardovich has quit
they had written exceptions for all the URLs except for that one that I found
magellanic
or make it a bit different, with /blob/category/<category_name>, and then /blog/new_post ?
blog*
KotoRez
thanks. I will try both cases for the sake of practice.
cyberbuzz joined the channel
webpigeon joined the channel
magellanic
I'm not sure about what the advice is on user generated stuff going into url's, if users can create category names I wonder if moving it to a url param is better. I'm not sure
cyberbuzz has quit
Andy80 joined the channel
kyern has quit
epopt joined the channel
microdex joined the channel
kingarmadillo joined the channel
jessamynsmith joined the channel
rpkilby joined the channel
twowheels joined the channel
milardovich joined the channel
rodolfojcj joined the channel
sol1x joined the channel
afuentes joined the channel
milardovich has quit
twowheels has quit
felixx has quit
kyern joined the channel
techno_x64 joined the channel
techno_x64 has quit
deronnax joined the channel
jhfisc joined the channel
deronnax
hello there
has anyone eer played with tastypie for non ORM ressources ?
jessamynsmith has quit
jessamynsmith joined the channel
jhfisc has quit
_DtM_ joined the channel
jiang42 joined the channel
jhfisc joined the channel
jmelloy joined the channel
jessamynsmith has quit
marcosmoyano joined the channel
Troy1 joined the channel
JuanDaugherty joined the channel
milardovich joined the channel
techno_x64 joined the channel
jhfisc has quit
Debnet has quit
juliopy joined the channel
milardovich has quit
Xard joined the channel
_DtM_
Hey folks, does anyone know if it's possible to annotate a database object returned by .get() in the same manner you can annotate a queryset returned by .filter()?
juliopy joined the channel
mRWaffles
Anyone here have experience deploying to Windows Server using IIS and CGI? Can't get my site to start error "Another website may be using the same port"... there is no other site.
twowheels joined the channel
zoolook joined the channel
jobelenus joined the channel
Leeds has quit
milardovich joined the channel
JuanDaugherty
it's a common IIS admin thing
you have to use a different port or site construct, it's been a while
mRWaffles
Yeah I got it configured using this guide http://rjschave.github.io/hosting-django-on-iis/ but when I hit server I receive "<handler> scriptProcessor could not be found in <fastCGI> application configuration"
JuanDaugherty
unless it's changed, they don't actually have virtual servers like apache and even apache has some constraints (like tls)
JaunDaugherty: Yeah it is a weird combo, long story.
milardovich has quit
JuanDaugherty has a sense he will never use IIS again
SuperSeriousCat has quit
jhfisc has quit
jhfisc joined the channel
jhfisc has quit
SuperSeriousCat joined the channel
__marco has quit
shangxiao has quit
juliopy joined the channel
jhfisc joined the channel
Landverus joined the channel
tharkun joined the channel
paratox joined the channel
paratox joined the channel
tharkun
Aloha, I'm setting up my first django project (migrating from something else) the databse structure is quite complex and I want django not to mess with it. Only do CRUD operations yet the tutorial does not state how to make django only read whatever it is on the database and build its modules accordingly.
jhfisc has quit
jhfisc joined the channel
eperzhand joined the channel
milardovich joined the channel
Troy1 joined the channel
JuanDaugherty
use a tablespace or tablename prefix
jhfisc has quit
opnchaudhary joined the channel
also django models won't do stuff you don't ask it to
SoulRaven joined the channel
SoulRaven
hello
:)
xliiv joined the channel
please help me with a problem regarding the SSL, smtp, self signed certificate
i get this error when i try to sendemail from manager.py
what do you use to have settings on reusable apps, that can be overwritten in the settings.py file?
opnchaudhary joined the channel
jhfisc joined the channel
i was thinking of having a settings.py file on each app, and then onproject/settings.py I would import everything
and that way i can overrite after those imports
rodolfojcj
hi everybody
jhfisc has quit
bakirelived
som other aproach is to import settings from django.conf on app_settings and use that file to import all the settings of the app
hi
rodolfojcj
how could disable/uninstall/bypass all of Django CORS validations? At least for the development environment? I'm trying to debug an error between a frontend Ember.js frontend and a Django + DRF backend, but same origin validations are making my work harder this time
doismellburning
bakirelived: I think you'll end up with concerning import cycles