Thanks for the answer, it's working like I want it to work...
Nice
>
>
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
the latest available
is 2.7.14
3. If you are using a virtual env and it is out of date (but your
system wide Python2.7 is ok), you can simply copy the python binary
over.
4. If both virtual env and System Python are ok - double check your pip
version, and Django version (although I doubt they are
issing from this file.
To help you debug this sort of thing in future - a quick tutorial might help
* When Django gets a request for a URL, then it checks the project
'urls.py' first - it is expected that the project 'urls.py' will
contain a list of specific urls for the
and a href instance :
HRef(field_name='id', field_value='aabbccddeeff')
would match against an incoming path of
http://host/notification/aabbccddeeff
It might be that we need to match multiple fields on a url - not
sure ho
ou actually provide a
user friendly categorization drill down; so the user works down a
tree of specific natural language descriptions - which internally
builds the code '10FTH86RSK'
On Apr 25, 2018, at 5:13 PM, shawn...@gmail.com
<mailto:shawn...@gmail.com> wrote:
better way to add new fields to a ModelAdmin dynamically?
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.c
does the widget need?
I have no clue
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:django-users
en do this :
$ python manage.py migrate
--
--
Anthony Flury
email : *anthony.fl...@btinternet.com*
Twitter : *@TonyFlury <https://twitter.com/TonyFlury/>
*On 02/05/18 00:56, Gerald Brown wrote:
I have a Django application that I am having problems with. In the
Admin page I have 3 se
Hey Mark,
I've not actually found a solution yet, I've just sort of put it at the
bottom of my pile of problems...
Here is the post that I used to get where I
am https://stackoverflow.com/a/35797311/3173119
It just doesn't feel very Django like, and I feel that there must be an
create a different projectdir - and run *django-admin
startproject mysite* in there ?
My gut feeling is that this is a diskdrive/OS type issue - rather than
Django specific
You may have a corrupted directory - or a bad section of disk; try the
troubleshooting steps above first.
On 02/05/18
& '..' are standard in every directory
* Can you do anything on the *mysite* directory - can you rename it,
or even delete it ? I can't - system cannot find the file specified.
Very odd - points to a an OS/disk problem to be honest - I am not sure
Django is doing anything clever
tdir* - and run it by this command '*python create_dir.py*'
One you run it you should have a new empty directory called
'python_created_me' - running the comand again should result in an error.
The reason for doing this is to check that the Python code that Django
is using
Serves me right for writing code without testing :-(
It of course should be :
import os
top_dir = os.path.join(os.getcwd(), 'python_created_me')
os.makedirs(top_dir)
Glad you have it sorted - and glad it turned out not to be Django ...
On 03/0
Question.objects.order_by('-pub_date')[:5]
context = {'latest_question_list': latest_question_list}
return render(request, 'polls/index.html', context)
--
Fidel Leon
fi...@flm.cat <mailto:fi...@flm.c
Django 2.0 docs suggest using reportlab :
https://docs.djangoproject.com/en/2.0/howto/outputting-pdf/
I had some success with : pupeteer -
http://django-puppeteer-pdf.readthedocs.io/en/latest/ - which works by
having a CBV type framework - so you subclass a PDF template view - and
that will
Hey everyone,
I forgot to follow up on this thread.
django-loci <https://github.com/openwisp/django-loci> now provides
abstract/base classes for models, admin, channels so other developers can
use this reusable app as a kind of library.
There's ample room for improving this new r
admin urls.
It is better to point it too the top level urls.py.
'django-admin startproject blah' builds a default : ROOT_URL_CONF =
'blah.urls' which should be sufficient unless you are doing something odd.
On 04/05/18 17:28, brzrkr wrote:
It seems you need to point your Djang
Can you be clear what you are trying to do ?
Did you want your Sphinx Page to display an alternative Django
documentation - i.e. a module reference for Django ?
Or did you want your Sphinx Page to document your app - if so the issue
is that your rst just calls for the views module - and
path
urlpatterns = [
path('', include('polls.urls')),
path('admin/', admin.site.urls),
]
Please check the above codes and comment where i've gone wrong
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
T
there way to do that.
Thanks
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to django-users+unsubscr...@googlegroups.com
<mailto:dja
same thing; basically you
have code like this :
if not username:
username = random_digits()
where random_digits is a function you write to generate your random user
name/number.
Remember you will need to tell the user what number you have chosen for
them.
This isn't really a Django
this isn't a Django
issue.
On 07/05/18 01:56, lakshitha kumara wrote:
hi anthony
Look at the facebook registration form. there are no username field
first time user registration. but once user registered they can set
username what they want.
Thanks
On Sunday, May 6, 2018 at 8:13:55 P
{% csrf_token %}
{{ Pregunta_Form.docfile }}
Submit
{% endblock %}
--
You received this message because you are subscribed to the Google
Groups "Django users" group.
To unsubscribe from t
in models.py? I assume the storing of
data and retrieving of data from the database does not need to be
tested, as I further assume django has a full set of tests for
those operations.
I can see testing these parts of models.py
* All custom methods
* Labels for all fiel
In your MySite\urls.py :
urlpatterns = [
path('', include('polls.urls')),
path('admin/', admin.site.urls),
]
should be
urlpatterns = [
path('polls', include('polls.urls')),
path('admin/', admin.site.urls),
]
gone wrong?
--
You received this message because you are subscribed to the
Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from
it, send an email to django-users+unsubscr...@googlegroups.com
<
Although Django doesn't support the Temporal tables directly - it gives
you all the tools you need to create one.
And there are some installable extensions :
django-temporal-models :
https://github.com/TyumenGortrans/django-temporal-models
You should be able to install
Basically no.
While there might be a WYSIWYG editor for the templates (which are basically
HTML, JS and CSS with an embedded python like script) they will only edit the
html within the template file and you won’t see the auto generated html for the
individual Django fields, or the other
; Text of error message in case the image is not loading
>
>
> >>> q = Question.objects.get(pk=1)
> >>> q.choice_set.all()
> Traceback (most recent call last):
> File "", line 1, in
> File "/usr/
, Albin Antony wrote:
Hello guys,
Sorry about the above no subject mail
I am getting a json string(json_string) from frontend. How can we
update the django database in views.py. Below is my models.py.
models.py
class Patient(models.Model):
patient_id = models.CharField(primary_k
subject mail
I am getting a json string(json_string) from frontend. How can we
update the django database in views.py. Below is my models.py.
models.py
class Patient(models.Model):
patient_id = models.CharField(primary_key=True, max_length=200)
patient_age = models.CharField(max_length=
in the non-working environment
which might be different from the working environment; there might be a
lot though.
Have you possibly upgraded your django installation in the non-working
environment - I can't image any 3rd Party non django installations
breaking the Django such that the mana
ied:
> ['my_views/(?P\d+)$']
\d+ means 1 or more digits (0-9). 'my_arg' doesn't match that. Either
pass a number, or change the regular expression to match the content
of the argument you wish to pass.
Cheers
Tom
--
You received this message because you are subscri
Hello,
I installed a new Server with DB2/LINUXX8664 10.5.7, Django 1.8.13, ibm_db
2.0.7 and ibm_db_django 1.0.9.2.
After restoring my database on the new system (source was also db2 with
django 1.7) I have the problem that the check boxes in the admin area shows
wrong data. All Check boxes
On Sun, May 29, 2016 at 02:22:48PM -0700, David Zárate wrote:
> Hi! I'm making a financial analysis app in Django and to have some data to
> play with i have to store historical data of balance sheets and profit/loss
> statements. I need some suggestions on how i can a
Being new to Django I have a problem which I am not able to resolve.
I have a model which has the following fields:
expiry_date = models.DateField(null=True, blank=True,)
has_expired = models.BooleanField(verbose_name='Has Ex
, James Schneider wrote:
>
> On Jun 7, 2016 1:35 PM, "'David Turner' via Django users" <
> django-users@googlegroups.com> wrote:
> >
> > Being new to Django I have a problem which I am not able to resolve.
> >
> > I have a model which h
u would need only objects that are not expired and
> are active/not disabled.
>
> -James
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.googl
Hi James
Just one more quick question:
I have two django models both containing the same information, temps and
companies.
The models both contain the following fields:
odd days
weekends
nights
emergencies
Currently this allows me to filter on these fields in django admin.
My question is would
Hi James
Thanks for your answer as it has made me go back to putting business logic
first which has then enabled me to come up with the right solution.
Best
-david
On 10 June 2016 at 01:16, James Schneider wrote:
>
>
> On Wed, Jun 8, 2016 at 9:25 AM, 'David Turner
base(request)
> x=X.objects.all()
> return render(request, 'index.html',{'x':x})
>
> def list(request):
> base(request)
> z=Z.objects.all()
> return render(request, 'list.html',{'z':z})
>
>
--
You received this
I am using django-filter
I have create the the filter as follows:
filters.py
import django_filters
from .models import Job
class JobFilter(django_filters.FilterSet):
class Meta:
model = Job
fields = ['practice_type']
And I have created the following view:
fr
The issue is that one of the fields use choices. If I remove this
everything is fine!
On 17 June 2016 at 16:58, 'David Turner' via Django users <
django-users@googlegroups.com> wrote:
> I am using django-filter
>
> I have create the the filter as follows:
> filter
I'm a newbie trying to make a wiki page with Django, however, I keep
running into this very annoying problem:
NoReverseMatch at /wiki/page/Start/ Reverse for '' with arguments '()' and
keyword arguments '{}' not found. 0 pattern(s) tried: []
Sites url
> alternative?
>>
>> Thanks in advance
>>
>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Django users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-user
ield isn't named slug, don't forget to set slug_field to the correct
>> name.
>>
>>
>> 2016-07-06 19:46 GMT+02:00 'David Turner' via Django users
>> :
>> > As far as putting the id in the url it was a way of distinguishing the
>> j
g_field to the correct
> name.
>
>
> 2016-07-06 19:46 GMT+02:00 'David Turner' via Django users
> :
> > As far as putting the id in the url it was a way of distinguishing the
> job
> > form others. As I said a number of listings will be made on the same day
Hello
Thanks for this.
Would then the suggested route be to export my email list via an admin
action and use this list via Sendmail?
On 18 July 2016 at 15:11, Shem Nashon wrote:
> Integrating email to django is a good but complex feature, My advice if
> you want your emails in the inb
filter on a queryset.
>
> 2016-07-21 9:43 GMT+02:00 'dtdave' via Django users
> :
> > I have two models notes and counties which are used across multiple
> models.
> > At the moment the realtionship is done using a foreign key.
> >
> > I am getting conflicti
21 13:15 GMT+02:00 'David Turner' via Django users
> :
> > Hi
> >
> > Thanks for this.
> > So basically if I am using the county Foreign key in a few different
> models
> > I am fine. I am not sure what you meant by this
> > "as long as no mo
me know if you still face this issue.
On Friday, July 22, 2016 at 5:58:57 PM UTC+5:30, jasonwo...@gmail.com wrote:
>
> Hey there!
> Sorry for the bother, but I'm running into some issues dealing with static
> files for a new site I'm building with Django. I'm new to
On Fri, Jul 29, 2016 at 9:19 PM, Aztrock wrote:
> Excellent, thanks
>
> This method i use from django 1.4, never have problem.
>
Apart from having to restart your application server each time you
added a country, sure, no problems.
Cheers
Tom
--
You received this message bec
Hi,
this is a tough question, i've posted it to stackoverflow here:
http://stackoverflow.com/questions/39076392/django-m2m-through-model-with-classic-admin-widget
I include the text of the question here to make it easier to respond:
I need to customise a through model of a many-to
Glad to know there's an accepted ticket for this.
Right now I'm not sure I'll be able to work on it and will probably use a
less pretty workaround, but I'm coming to Django Under The Hood and I'm
pretty sure I will participate in the sprints, so if I cannot work on
JSON/XML response.
>
> Or there is: https://www.zipcodeapi.com/
>
> Of course, you need to adhere to the terms&conditions of these service
> providers.
>
>
> On Tuesday, 23 August 2016 23:19:53 UTC+2, dtdave wrote:
>>
>> I am looking to add the facility to
s-opendata-edubase/blob/master/
> fabric/fabfile.py#L286
>
> get points near to:
>
> https://github.com/cleder/os-opendata-edubase/blob/master/
> django/schools/views.py#L63
> or
> https://github.com/cleder/os-opendata-edubase/blob/master/
> django/schools/views.py#L120
&
This might be silly to ask but - can we assume you've completed the django
tutorial?
On Monday, 29 August 2016 16:56:33 UTC+5:30, rajeshkmr9583 wrote:
>
> Hi,
>
> i'm new to Django i need some mini project which contain at least 4
> page for go through how it work
empty directory to create a new
virtualenv folder, activate it, and install django!
$ mkdir test
$ cd test
$ virtualenv --python=python3 VENV
$ source VENV/bin/activate
(VENV)$ pip install django
(VENV)$ django-admin startproject mysite
...
(VENV)$ deactivate # to turn off the virutualen
r still persists, it will help if you include the full
traceback in your email.
Yours,
Abraham V.
On Monday, September 5, 2016 at 6:36:37 PM UTC+5:30, arun kumar wrote:
>
> Hi,
>
>I'm working in Django 1.10 and I got the type error in the below file
> at this
The idea of doing a POST request during template rendering seems weird. As
others have mentioned - that's not the place for it.
But perhaps you issue could be a matter of performing your POST operation
on the client side, instead of the django server? In that case, it might be
On Thu, Sep 15, 2016 at 8:21 AM, Rahul Doshi wrote:
> Hi ,I want to setup a dropbox like server with django. So far i have
> achieved uploading files onto a location .I want these files to show up on
> browser which they do(while saving file to the location I indexed an entry
> in
Hello,
Do we have any standard/recommended way to distribute the python virtualenv
used in a django application across multiple servers?
I'm able to write a provisioning script to do the following on a server,
(for brevity, this is just a high-overview)
* Clone the master branch of my d
of how to change/switch application behaviour.It
depends on what you eventually need to get.
Mentioned solution: settings.DEBUG = true/false can be one of them
Hope it helps.
Regards,Constantine C.
On Sep 30, 2016, at 12:06, Richard Auscard wrote:
hello,
i have developp a django application where
us to suggest something valuable.
Regards,
On Sep 30, 2016, at 12:06, Richard Auscard wrote:
hello,
i have developp a django application where excel file are generate after some
operation. when debug=true thes excel files can be download but when false it
is not possible.my question is how to
y obvious?
Any help would be appreciated
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this gr
Text if you're looking for options) and save the file as urls.py
> inside the polls directory.
>
> Asad Jibran Ahmed >
> http://blog.asadjb.com
>
> On Fri, Oct 14, 2016 at 8:00 PM, 'Nick Bansal' via Django users <
> django...@googlegroups.com > wrote:
Cheers! got it!
On Friday, 14 October 2016 22:45:05 UTC+1, Asad Jibran Ahmed wrote:
>
> Just save the file inside the *poll *folder. That creates the file.
>
> Asad Jibran Ahmed >
> http://blog.asadjb.com
>
> On Fri, Oct 14, 2016 at 9:55 PM, 'Nick Bansal
On Fri, Oct 14, 2016 at 5:15 AM, Avraham Serour wrote:
> I will take a wild guess here and say that this is a modwsgi problem, it
> seems it will only load the django app after the first request.
Indeed, see this SO post for how to tell it to load your app
immediately on start up:
it is firmly implied by this page:
https://docs.djangoproject.com/en/1.10/topics/forms/modelforms/#modelform
The first positional argument is expected to be data submitted by the browser.
Cheers
Tom
--
You received this message because you are subscribed to the Google Groups
"Django users&
in contact.contactnumber_set.all %}
> {{ contactnumber.phone_number }}
> {% endfor %}
>
> {% endfor %}
>
>
> On Fri, Nov 18, 2016 at 9:08 AM, 'dtdave' via Django users <
> django-users@googlegroups.com> wrote:
>
>> As still learning django I ha
Hi all
We're moving a project over to the latest release (well, we're at 1.7
now, but that's the end goal anyway) and replacing South migrations
with Django migrations.
It looks like that fixtures are no longer thought of as the correct
way of providing initial data. Is this
abase, might I offer an
alternative? Take a backup of your database and store it somewhere. You
don't need to keep it running, but having it around might be useful later
on.
Yours,
Abraham V.
--
You received this message because you are subscribed to the Google Groups
"Django users"
so handle accordingly.
Yours sincerely,
Abraham V.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post t
e because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at
keep things separated?
Thanks!
Matthias
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group
is this really just not possible? What I found is this:
you can't have two apps with the same name, even if they have different
> fully qualified module paths
https://groups.google.com/forum/#!msg/django-users/AMYLfQo6Ba4/Y-57B0i7qy4J
How would you guys handle this?
--
You recei
Hi Melvyn,
thanks for your answer. Unfortunately switching the CMS isn't an option.
And even if I skip the multisite requirements i could think of usecases
where it might be a problem in just a django project as well, wanting to
have a similar project structure, doesn't it?
Am Donn
Hi all,
I'm not sure is it the correct setting, but the setting is working for me.
Please find the steps as follows.
1. Download LDAP packages
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
sudo pip install python-ldap
2. Install Django LDAP Librar
Dear all,
I'm not sure is it the correct setting, but the setting is working for me.
Please find the steps as follows.
1. Download LDAP packages
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
sudo pip install python-ldap
2. Install Django LDAP Librar
owever, I'm not successful to
> config the Auth with LDAP. Could anyone could provide the guide to me? I
> don't know where is the settings.py file path in open edx.
>
> Please help.
>
> Thanks and Regards,
> Terence Yip
>
--
You received this message because
Hello everybody.
I just began learning how to use django. So I wanted to include data from
the database in a testwebsite.
Therefore I made a new app and created a model called "user" and a view
that should fill a template with data from that model.
To do this (according to Django
Thank you for your help. Even though I understand the obvious reason to use
the in-built User model I prefer to make one myself.
Not because the integrated one is bad. It is just that it adds huge amounts
of boilerplate and hidden django magic.
And since users are basically just a name and an
y.
>>
>>
>> I just began learning how to use django. So I wanted to include data from
>> the database in a testwebsite.
>> Therefore I made a new app and created a model called "user" and a view
>> that should fill a template with data from that model.
http://pastebin.com/q0V3bQay
>>
>>
>> thanks
>>
>> Peter
>>
>
>
> The traceback shows that you are importing your views module in the
> __init__.py of your app. Don't do that.
> --
> DR.
>
--
You received this message because you ar
t;
> Because you first have to create you project with "django-admin.py
> startproject " and then within that created directory run
> either "./manage.py startapp " or "django-admin.py startapp
> ".
>
> Regards,
>
> Andréas
>
> 2017-01-16 21
e views file.
>
>
>
> *From:* 'Peter Müller' via Django users [mailto:django...@googlegroups.com
> ]
> *Sent:* Monday, January 16, 2017 2:23 PM
> *To:* Django users
> *Subject:* Re: Am I stupid or is there an essential error in Django 1.10
> Docs?
>
>
>
>
Ah I now see the problem. However I tried to remove the entry in the
__init__.py file
Python is then unable to find *any *module in that directory. Don't ask me
why that is.
Also I noticed that django has its completely own import ecosystem.
So I used django.conf.urls.include to include
On Tue, Jan 17, 2017 at 7:58 PM, Fred Stluka wrote:
> Mike,
>
> As of version 1.6, Django supports persistent DB connections
> (connection pooling).
Pedantry: Persistent connections are not the same as connection
pooling. With persistent connections, if a worker does not have a
cu
hain are not called at
all, so StreamingHttpResponse would not get handled by the same
middleware as a regular HttpResponse.
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, s
Hi Yip,
Thanks for your Instruction.
While trying to update the database record like you explained on step 16. I
got some error messages.
Im not so familar with that django and python stuff.
Im going to give a description of my errors. I hope someone can help me.
I am using the following
n Thu, Jan 10, 2019 at 10:11 PM abel otugeme wrote:
Ones your view matches your use patterns it gets called and run anytime you try
access the site
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this grou
Thank you in advance
Kidwell
--
You received this message because you are subscribed to the Google Groups
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to django-users+unsubscr...@googlegroups.com.
To post to this group, sen
I had similar problem before.
try
"cd " until you reach the directory of "scripts" then type "activate".
same thing to deactivate.
Hadi
On Friday, 18 January 2019 12:46:03 UTC, Django Geek Aditya wrote:
>
> .\scripts\activate.bat is also not working
Hi,
I am interested as well. I have 4 years of work experience in Python, around 2
years on Django.
Regards,
Amitesh Sahay91-750 797 8619
On Tuesday, 22 January, 2019, 3:34:33 PM IST, Abhinav tuteja
wrote:
Hey i am a django developer and i we are a team of 2 people with 3 years
to setup a call with you!
Thanks for the reply, I look forward to hearing back from you!
Cheers,
Zack
On Tue, Jan 22, 2019 at 3:03 AM Abhinav tuteja
wrote:
Hey i am a django developer and i we are a team of 2 people with 3 years of
experience plz feel free to contactWhats app - 9540824924
On
I would also suggest a youtube django course by Durga soft. I must confess
that, his English is not pretty, but if you can ignore that you can get deep
knowledge from his tutorials.
Web Development Django with Python Online Training by Durga Sir On 25-05-2018 @
8PM
gt;
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com
> <m
Hello
I have problems with the Charfield max_length. In the source
code, the possibility exists to have max_length = None but it does
not pass Django check when models.py. contains a charfield = None
I can understand that there is a need for such a max_length
this clarifies the need!
I am now aiming to define a custom smallIntergerfield in the
model, with a custom formfield and a textinput widget. As I am
rather new to Django this is a fairly high challenge for which I
will probably require more help.
If you believe this
hi,
All the above should work. If you are working on django REST, then you can use
ModelSerializer helper function. This will automatically sync with the table
fields, and if there are any foreign key and primary key. They would be mapped
automatically.
Regards,
Amitesh Sahay91-750 797 8619
901 - 1000 of 1445 matches
Mail list logo