Re: CreateView autoset field

2018-04-14 Thread 'Ferdinand Rohlfing' via Django users
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

Re: ARGPARSE ERROR

2018-04-17 Thread 'Anthony Flury' via Django users
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

Re: tutorial01 is not working

2018-04-24 Thread 'Anthony Flury' via Django users
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

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-25 Thread 'Anthony Flury' via Django users
      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

Re: Django--Making query use part of the matching name

2018-04-28 Thread 'Anthony Flury' via Django users
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:

Add extra fields to a ModelAdmin form

2018-04-30 Thread 'James Foley&#x27; via Django users
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

Re: Crazy Idea: OOP for "Hyperlink"

2018-04-30 Thread 'Anthony Flury&#x27; via Django users
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

Re: OperationalError

2018-05-02 Thread 'Anthony Flury&#x27; via 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

Re: Add extra fields to a ModelAdmin form

2018-05-02 Thread 'James Foley&#x27; via Django users
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

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-02 Thread 'Anthony Flury&#x27; via Django users
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

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread 'Anthony Flury&#x27; via Django users
& '..' 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

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread 'Anthony Flury&#x27; via Django users
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

Re: Need help: django-admin.py startproject [projectname] creates directory which I cannot access

2018-05-03 Thread 'Anthony Flury&#x27; via Django users
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

Re: Working through the Django tutorial and have run into a problem I cannot figure out. Help would be appreciated. What am I missing here? whenever is search the url "http://127.0.0.1:8000/polls/" th

2018-05-03 Thread 'Anthony Flury&#x27; via Django users
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

Re: OperationalError

2018-05-03 Thread 'Anthony Flury&#x27; via Django users
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

Re: Any django reusable app for outdoor & indoor location, GPS tracking?

2018-05-04 Thread 'Federico Capoano&#x27; via Django users
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

Re: I got error when working on "Writing your first Django app, part 5" of tutorial

2018-05-05 Thread 'Anthony Flury&#x27; via Django users
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

Re: sphinx is showing the django base views instead of my own views.py

2018-05-05 Thread 'Anthony Flury&#x27; via Django users
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

Re: While going through django tutorial i found some errors when i tried to execute the python manage.py runserver.The error is attached below:

2018-05-06 Thread 'Anthony Flury&#x27; via Django users
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

Re: Username same as user id

2018-05-06 Thread 'Anthony Flury&#x27; via Django users
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

Re: Username same as user id

2018-05-07 Thread 'Anthony Flury&#x27; via Django users
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

Re: Username same as user id

2018-05-07 Thread 'Anthony Flury&#x27; via Django users
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

Re: I canot upload files how can i fix it

2018-05-13 Thread 'Anthony Flury&#x27; via Django users
   {% 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

Re: Unit testing models.py

2018-05-13 Thread 'Anthony Flury&#x27; via Django users
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

Re: getting error while reloading the url"http://localhost:8000/polls/".The error is given below.Please tell my why i am seeing this error?

2018-05-22 Thread 'Anthony Flury&#x27; via Django users
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), ]

Re:

2018-05-23 Thread 'Anthony Flury&#x27; via Django users
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 <

Re: Temporal table in Django 1.6

2018-05-24 Thread 'Anthony Flury&#x27; via Django users
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

Re: Is there a WYSIWYG app I can use for an inherited Django created website?

2018-05-26 Thread 'Anthony Flury&#x27; via Django users
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

Re: Error while doing django tutorial part 2

2018-05-26 Thread 'Anthony Flury&#x27; via Django users
; 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/

Re: Updating django database

2018-06-02 Thread 'Anthony Flury&#x27; via Django users
, 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

Re: Updating django database

2018-06-02 Thread 'Anthony Flury&#x27; via Django users
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=

Re: python manage.py (anything) NOT WORKING ANYMORE

2018-06-04 Thread 'Anthony Flury&#x27; via Django users
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

Re: pass link value in argument for view

2016-05-12 Thread 'Tom Evans&#x27; via Django users
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

Booleanfield in Admin/ shows wrong data (Django 1.8)

2016-05-18 Thread 'Uwe Küllmar&#x27; via Django users
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

Re: Django: Begginer Problems

2016-05-31 Thread 'Ryan Nowakowski&#x27; via Django users
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

Expiration date option

2016-06-07 Thread 'David Turner&#x27; via Django users
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

Re: Expiration date option

2016-06-07 Thread 'David Turner&#x27; via Django users
, 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

Re: Expiration date option

2016-06-08 Thread 'David Turner&#x27; via Django users
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

Re: Expiration date option

2016-06-08 Thread 'David Turner&#x27; via Django users
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

Re: Expiration date option

2016-06-13 Thread 'David Turner&#x27; via Django users
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

Re: how to use view function in another function of view in django

2016-06-16 Thread 'Abraham Varricatt&#x27; via Django users
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

Django Filter

2016-06-17 Thread 'David Turner&#x27; via Django users
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

Re: Django Filter

2016-06-17 Thread 'David Turner&#x27; via Django users
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

Python NoReverseMatch when Viewing the Page

2016-06-17 Thread 'antanas skiudulas&#x27; via Django users
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

Re: Best Practices URL Patterns

2016-07-06 Thread 'David Turner&#x27; via Django users
> 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

Re: Best Practices URL Patterns

2016-07-07 Thread 'David Turner&#x27; via Django users
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

Re: Best Practices URL Patterns

2016-07-07 Thread 'David Turner&#x27; via Django users
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

Re: Email List

2016-07-18 Thread 'David Turner&#x27; via Django users
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

Re: Generic Foreign Key

2016-07-21 Thread 'David Turner&#x27; via Django users
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

Re: Generic Foreign Key

2016-07-21 Thread 'David Turner&#x27; via Django users
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

Re: Help debugging static files issue

2016-07-22 Thread 'Ajay M&#x27; via Django users
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

Re: django 1.9, migrations SUCK

2016-08-03 Thread 'Tom Evans&#x27; via Django users
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

Django m2m through model with classic admin widget

2016-08-22 Thread 'Federico Capoano&#x27; via Django users
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

Re: Django m2m through model with classic admin widget

2016-08-22 Thread 'Federico Capoano&#x27; via Django users
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

Re: Postcode Search

2016-08-25 Thread 'David Turner&#x27; via Django users
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

Re: Postcode Search

2016-08-25 Thread 'David Turner&#x27; via Django users
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 &

Re: Hi, i'm new to django i need some mini project which contain atleast 4 page for go through how it works

2016-08-31 Thread 'Abraham Varricatt&#x27; via Django users
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

Re: Getting Start Django

2016-08-31 Thread 'Abraham Varricatt&#x27; via Django users
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

Re: TypeError: view must be a callable or a list/tuple in the case of include(). in urls.py

2016-09-05 Thread 'Abraham Varricatt&#x27; via Django users
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

Re: Custom Template Tag

2016-09-15 Thread 'Abraham Varricatt&#x27; via Django users
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

Re: A public cloud with django backend

2016-09-19 Thread 'Tom Evans&#x27; via Django users
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

Package a virtualenv to deploy across multiple systems?

2016-09-21 Thread 'Abraham Varricatt&#x27; via Django users
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

Re :Re: download file when debug=false

2016-10-01 Thread 'lateu richard&#x27; via Django users
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

Re :Re: download file when debug=false

2016-10-01 Thread 'lateu richard&#x27; via Django users
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

HELP - Writing your first Django app, part 1

2016-10-14 Thread 'Nick Bansal&#x27; via Django users
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

Re: HELP - Writing your first Django app, part 1

2016-10-14 Thread 'Nick Bansal&#x27; via Django users
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:

Re: HELP - Writing your first Django app, part 1

2016-10-16 Thread 'Nick Bansal&#x27; via Django users
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

Re: Slow first request django

2016-10-18 Thread 'Tom Evans&#x27; via Django users
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:

Re: Silently continuing past an exception: is this proper? how else can I do this?

2016-10-26 Thread 'Tom Evans&#x27; via Django users
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&

Re: Template Data

2016-11-18 Thread 'David Turner&#x27; via 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

Initial data with migrations vs fixtures

2016-12-01 Thread 'Tom Evans&#x27; via Django users
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

Re: Drawback of delete all migrations file

2016-12-09 Thread 'Abraham Varricatt&#x27; via Django users
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"

Re: Filling out a form using a json file

2016-12-12 Thread 'Abraham Varricatt&#x27; via 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

Re: Edx LDAP Auth setting

2016-12-19 Thread 'Faruk D.&#x27; via Django users
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

Unique app name error problem when building a Wagtail multisite solution

2016-12-21 Thread 'Matthias Brück&#x27; via Django users
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

Re: Unique app name error problem when building a Wagtail multisite solution

2016-12-21 Thread 'Matthias Brück&#x27; via Django users
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

Re: Unique app name error problem when building a Wagtail multisite solution

2016-12-22 Thread 'Matthias Brück&#x27; via Django users
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

Re: Edx LDAP Auth setting

2017-01-03 Thread 'Yip Terence&#x27; via Django users
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

Re: Edx LDAP Auth setting

2017-01-03 Thread 'Yip Terence&#x27; via Django users
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

Re: Edx LDAP Auth setting

2017-01-03 Thread 'Yip Terence&#x27; via Django users
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

Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-15 Thread 'Peter Müller&#x27; via Django users
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

Re: Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-16 Thread 'Peter Müller&#x27; via Django users
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

Re: Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-16 Thread 'Peter Müller&#x27; via Django users
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.

Re: Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-16 Thread 'Peter Müller&#x27; via Django users
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

Re: Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-16 Thread 'Peter Müller&#x27; via Django users
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

Re: Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-16 Thread 'Peter Müller&#x27; via Django users
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? > > > >

Re: Am I stupid or is there an essential error in Django 1.10 Docs?

2017-01-17 Thread 'Peter Müller&#x27; via Django users
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

Re: What is the fate of closed database connections?

2017-01-18 Thread 'Tom Evans&#x27; via Django users
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

Re: StreamingHttpResponse response length in a stats middleware

2017-01-18 Thread 'Tom Evans&#x27; via Django users
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

Re: Edx LDAP Auth setting

2017-01-18 Thread 'Faruk D.&#x27; via Django users
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

Re: How & Where are Django View Functions Called?

2019-01-11 Thread 'Amitesh Sahay&#x27; via Django users
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

Re: Pip installation

2019-01-13 Thread 'Amitesh Sahay&#x27; via Django users
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

Re: problem in activating virtual environment in Django with ". \Scripts\activate" command

2019-01-18 Thread 'hadi tedi&#x27; via Django users
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

Re: Looking for a Django Co-Founder.

2019-01-22 Thread 'Amitesh Sahay&#x27; via Django users
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

Re: Looking for a Django Co-Founder.

2019-01-22 Thread 'Amitesh Sahay&#x27; via Django users
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

Re: Best Learning Resources

2019-01-22 Thread 'Amitesh Sahay&#x27; via Django users
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

Re: Add fields Django admin

2019-01-22 Thread 'Christian Hetmann&#x27; via Django users
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

Charfield variable length

2019-01-23 Thread 'Odile Lambert&#x27; via Django users
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

Re: Charfield variable length

2019-01-24 Thread 'Odile Lambert&#x27; via Django users
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

Re: how can I reference a field from one model to another model

2019-01-25 Thread 'Amitesh Sahay&#x27; via Django users
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

<    5   6   7   8   9   10   11   12   13   14   >