5:35 AM
bigblind has quit
5:38 AM
zkanda has quit
5:39 AM
zkanda joined the channel
5:39 AM
theWhisper_ has quit
5:51 AM
darkhanb has quit
5:54 AM
fikka has quit
5:56 AM
cseder has quit
5:57 AM
timkofu joined the channel
5:58 AM
cseder joined the channel
5:58 AM
xnekomata has quit
6:02 AM
fikka joined the channel
6:02 AM
re1 has quit
6:04 AM
lborda has quit
6:05 AM
lborda joined the channel
6:06 AM
klow
Is it possible to use a generic view that would be like a DetailView and CreateView combined, meaning some fields would be displayed (just as text, not in form elements) while a few specified fields would be rendered as form inputs that would save on submit?
6:06 AM
nkuttler
use two views, display form on detail view
6:07 AM
klow
you mean do like form.as_p in my details.html ?
6:07 AM
nkuttler
yeah
6:07 AM
klow
will that save though when its submitted?
6:07 AM
nkuttler
klow: add the form to the context of the detail view, point the action to an UpdateView, done
6:09 AM
klow
Ok so then I need also create a specific forms.Modelform (?) object with just the fields I want in forms.py , and specifiy just the fields I want to simply display as text in the DetailView
6:09 AM
cilkay
klys, You shouldn't be using the distro-supplied Django package in any event. Use virtualenv or pipenv to isolate your project's site-packages from the distro's site-packages. Don't pip install globally.
6:09 AM
nkuttler
klow: yes, sounds about right
6:10 AM
klow: or, actually, you could only have one UpdateView, and simply display your object above the form
6:10 AM
klow: no need really for a detail view i guess
6:11 AM
klow
ah, that makes sense.
6:12 AM
Gromboli has quit
6:13 AM
brainproxy joined the channel
6:15 AM
brainpro1 has quit
6:19 AM
mostlybadfly has quit
6:22 AM
bigblind joined the channel
6:28 AM
kuter joined the channel
6:32 AM
imack joined the channel
6:34 AM
jessamynsmith has quit
6:37 AM
nix64bit
is it a good idea to use a GenericForeignKey - in my case i want to link images to various models
6:42 AM
good as in is it expensive
6:42 AM
not
6:52 AM
k_sze[work]
6:54 AM
Or trusting any cert not signed with a recognised root CA.
6:56 AM
jas02 joined the channel
6:56 AM
jas02 has quit
6:57 AM
jas02 joined the channel
6:58 AM
LysergicDreams joined the channel
6:58 AM
klys
cilkay, can I do something like this (is there a way)? url(r'/', include('a.urls') ),
6:58 AM
Donitzo joined the channel
6:59 AM
mitaka joined the channel
7:01 AM
FD91224 has quit
7:01 AM
Stragler joined the channel
7:02 AM
idontneedanick has quit
7:03 AM
microdex has quit
7:06 AM
schinckel
nix64bit: It depends on what you want to do in terms of querying.
7:07 AM
foxmask
bonjello
7:07 AM
schinckel channels FunkyBob
7:07 AM
schinckel
fofo!
7:08 AM
mirk0 has quit
7:08 AM
kingarmadillo joined the channel
7:08 AM
klys
thing is, if I'm going to WSGIScriptAlias / /to/django/wherever then I don't want a 404 page at /
7:09 AM
czart_ joined the channel
7:10 AM
czart_ has quit
7:12 AM
Stragler has quit
7:12 AM
czart joined the channel
7:13 AM
czart has quit
7:13 AM
chriys joined the channel
7:13 AM
czart joined the channel
7:14 AM
FunkyBob
fofo!
7:15 AM
czart has quit
7:17 AM
czart joined the channel
7:18 AM
chriys has quit
7:18 AM
aki
good morning
7:19 AM
czart_ joined the channel
7:20 AM
iamriel joined the channel
7:21 AM
FunkyBob
hi
7:21 AM
czart has quit
7:22 AM
omidmnz joined the channel
7:23 AM
fikka has quit
7:25 AM
joshbright has quit
7:25 AM
FD91224 joined the channel
7:26 AM
felixx joined the channel
7:28 AM
klys
so, do I need to replace the 404 page
7:28 AM
FunkyBob
klys: django can happily provide its own 404 page
7:29 AM
klys
7:29 AM
and if I go there I get 404
7:29 AM
pathrocle joined the channel
7:30 AM
7:30 AM
FunkyBob
well, you've mapped that to go to django
7:30 AM
vdboor has quit
7:30 AM
klys
so, how can it be made to serve content?
7:31 AM
darkhanb joined the channel
7:31 AM
FunkyBob
which "it"?
7:31 AM
klys
the / at documentroot
7:32 AM
FunkyBob
give django a url(r'^$', .... pattern to handle it
7:32 AM
klys
ok
7:35 AM
vdboor joined the channel
7:37 AM
yayy thank you funkybob
7:37 AM
bigblind has quit
7:40 AM
fikka joined the channel
7:41 AM
n0nam3 joined the channel
7:42 AM
nix64bit has quit
7:43 AM
vdamewood joined the channel
7:44 AM
dementedshaman joined the channel
7:44 AM
fikka has quit
7:44 AM
greg_f has quit
7:49 AM
dg_vrani has left the channel
7:49 AM
kingarmadillo has quit
7:51 AM
dementedshaman has quit
7:51 AM
iamriel has quit
7:51 AM
dementedshaman joined the channel
7:53 AM
chasonchaffin has quit
7:54 AM
dementedshaman has quit
7:54 AM
dementedshaman joined the channel
7:54 AM
adsworth_ joined the channel
7:55 AM
dementedshaman has quit
7:55 AM
rokups joined the channel
7:55 AM
dementedshaman joined the channel
7:56 AM
chasonchaffin joined the channel
7:57 AM
greg_f joined the channel
7:59 AM
iamriel joined the channel
7:59 AM
KeyJoo joined the channel
7:59 AM
milardovich joined the channel
8:00 AM
vdboor has quit
8:01 AM
Itkovian joined the channel
8:04 AM
milardovich has quit
8:06 AM
ninja joined the channel
8:06 AM
pathrocle
i'm modifying the label in the form init but in my html the label dosn't change anyone have any ideea?
8:06 AM
rpkilby has quit
8:08 AM
kezabelle joined the channel
8:08 AM
shallow has quit
8:10 AM
nix64bit joined the channel
8:10 AM
fikka joined the channel
8:10 AM
KeyJoo has quit
8:12 AM
jeffspeff has quit
8:14 AM
KeyJoo joined the channel
8:16 AM
fikka has quit
8:17 AM
shredding joined the channel
8:17 AM
bigblind joined the channel
8:18 AM
shredding has quit
8:18 AM
fikka joined the channel
8:22 AM
JustASlacker joined the channel
8:22 AM
sidx64 joined the channel
8:23 AM
greg_f has quit
8:24 AM
Haudegen joined the channel
8:25 AM
fleetfox
pathrocle: can you paste the code?
8:26 AM
pathrocle
fleetfox, i figured it out thanks
8:31 AM
darkhanb has quit
8:35 AM
xcm has quit
8:37 AM
rpkilby joined the channel
8:38 AM
xcm joined the channel
8:39 AM
detseg has quit
8:39 AM
|oLa| has quit
8:41 AM
rpkilby has quit