Re: Using JavaScript to enumerate a dataset returned to a page.

2023-06-20 Thread Lee Stevens
? On Monday, June 19, 2023 at 9:30:15 AM UTC-5 Lee Stevens wrote: > Helo, > > I have a dataset returning to a page. I need JavaScript to be able to > process this. > > Instead of using: > {% for item in dataset %} > {{ item.field1 }} > {{ item.field2 }} > {% endfor

Using JavaScript to enumerate a dataset returned to a page.

2023-06-19 Thread Lee Stevens
Helo, I have a dataset returning to a page. I need JavaScript to be able to process this. Instead of using: {% for item in dataset %} {{ item.field1 }} {{ item.field2 }} {% endfor %} Is there a *JavaScript* way to read this dataset/variable instead? Thanks. -- You received this message

Re: Can't use swagger in Django 4.0?

2022-03-06 Thread Emmanuel Lee
Self answer: After commenting out the urls in urls.py of the app in question, it worked normally. 2022년 3월 6일 일요일 오후 4시 41분 59초 UTC+9에 Emmanuel Lee님이 작성: > Thanks for answering my question. Below is my urls.py > -- > > from django.urls

Re: Can't use swagger in Django 4.0?

2022-03-05 Thread Emmanuel Lee
Thanks for answering my question. Below is my urls.py -- from django.urls import path, include, re_path from drf_yasg.views import get_schema_view from drf_yasg import openapi from django.conf import settings from

How does django-admin work?

2021-05-31 Thread J Lee
I'm new to Django, and I've just been dazzled by the magic of Django. My main question is how does Django add django-admin to my path automatically and how does django-admin startproject create my files? It may be wy over my head, but I welcome any and all response. I would like to learn

Re: Django/python free Training

2020-12-19 Thread Rg Lee
I am interested Oyedele Yusuff 于 2020年12月20日周日 07:53写道: > I'm interested > > On Fri, 18 Dec 2020 3:26 pm Python Class, > wrote: > >> Hi guys, >> >> I am manucho from Kenya and am good developer with django and python and >> i want to teach people what i know .I want to start a youtube channel

Re: Update _id field before .save() for ForeignKey

2019-11-29 Thread Charles Lee
I have an idea. 1. `bulk_create` all companies. 2. `Filter`(SELECT) all `Company` and make it dictionary for retrieving company fast. 3. 1. company_dict = { ’Name’: ‘pk’, ... } 4. Create a list of `CompanyValue` with company name and company_dict.

Re: Update _id field before .save() for ForeignKey

2019-11-29 Thread Charles Lee
I have an idea. 1. `bulk_create` all companies. 2. `Filter`(SELECT) all `Company` and make it dictionary for retrieving company pk fast. 3. 1. company_dict = { ’Name’: ‘pk’, ... } 4. Create a list of `CompanyValue` with company name and

Redirect Loops and 404 with Django Channels and runserver command

2018-06-08 Thread Justin Lee
I was just trying to integrate channels into an existing django/DRF project and I have been running into an issue where my original urls paths are breaking when I do runserver. My root index view leads to 301 infinite redirects loop and my other app views results in a 404. The Socket server

Re: Problems with translating URL patterns.

2017-12-03 Thread chotak lee
Can you help me? 2017-12-04 3:48 GMT+08:00 Juan José Meneses : > Hello, I'm having problems with translating URL patterns. If I set a URL > patter to be, for example, > url(_(r'^admin/'), admin.site.urls) > > where > _() > > is ugettext_lazy and access a no defined URL,

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

2017-09-27 Thread Lee Hinde
Regarding developing over https…. https://ngrok.com/ is a great tool when you want to use https locally. > On Sep 27, 2017, at 12:35 PM, Jani Tiainen wrote: > > Hi. > > To my knowledge there isn't one since we implemented our own tracker. > > If

Re: Is there a way to use input text placeholder when using {{ form.as_p }}

2017-07-26 Thread Lee Hinde
in the init method of your form do something like this: self.fields['verification_date'].widget.attrs["placeholder"] = 'date' > On Jul 26, 2017, at 1:31 PM, Alexander Joseph > wrote: > > I'm using {{ form.as_p }} in my template and would like to be able to use >

add users to google group django

2017-06-30 Thread Brian Lee
I have a quick question about handling email updates using Django. My organization uses a Google Group to send mass emails to those added to the email list, and I was looking to add a 'sign up' widget to the footer of the website (It's a non-buisness Google Group). Is it possible to utilize

Re: Problems with migrations cleaning up a date field

2017-06-12 Thread Lee Hinde
On Sat, Jun 10, 2017 at 5:03 AM, Melvyn Sopacua wrote: > On Friday 09 June 2017 20:56:46 James Schneider wrote: > > > > > Quite honestly this sounds like a bug in the migration system if > > > that's the case. I'm pretty sure it should ask what value to use as a > > >

Re: Problems with migrations cleaning up a date field

2017-06-09 Thread Lee Hinde
I should add, this project is in 1.8.x. I'm working around the problem by skipping the migration. -- 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

Problems with migrations cleaning up a date field

2017-06-09 Thread Lee Hinde
I'm having problems with a migration after cleaning up an oddity with a date field and I'm not sure how to fix it. Any advice appreciated. I made this change to a date field: -start_date = models.DateField(db_index=True, default=False, - help_text="The date

Re:using HTTPHandler cause Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-10 Thread Zhao Lee
No, that would cause the following exception --- Logging error --- Traceback (most recent call last): File "C:\Users\i\AppData\Local\Programs\Python\Python35-32\lib\http\client.py", line 798, in _get_hostport port = int(host[i+1:]) ValueError: invalid literal for int() with base 10:

using HTTPHandler cause Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-10 Thread Philip Lee
I also posted The question here http://stackoverflow.com/questions/43185804/using-httphandler-cause-django-server-side-shows-http-400-and-invalid-http-host I am using HTTPHandler to send logging messages to a Django Web

The Django server side shows http 400 and Invalid HTTP_HOST header message

2017-04-03 Thread Philip Lee
I am using HTTPHandler to send logging messages to a Django Web server with The following code, > > import logging > import logging.handlers > logger = logging.getLogger('mylogger') > http_handler = logging.handlers.HTTPHandler('localhost:8000', > '/VideoParser/lYYDownloaderClientLog')#,

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2017-02-09 Thread Brady Lee
> > {{ choice.choice_text > }} > {% empty %} > Sorry, no available choices. > {% endfor %} > > 2017-02-07 10:12 GMT+01:00 Brady Lee <jack...@gmail.com >: > > Same issue here, no radio buttons show up. > > > > ubuntu 16.04.1 LTS >

Re: Tutorial part 4 help: the raidio buttons to make a choice on the polls question won't show.

2017-02-07 Thread Brady Lee
Same issue here, no radio buttons show up. ubuntu 16.04.1 LTS python 3.5.2 django 1.10.5 I've tried {{ question|pprint }} and {{ question.choice_set.all|pprint }} for debugging, got: Now trying to figure out where the problem is. On Thursday, October 20, 2016 at 11:52:59 PM UTC+8,

Re:Re: Django doesn't email reporting an internal server error (HTTP status code 500)

2016-12-30 Thread Zhao Lee
de django loggin https://docs.djangoproject.com/en/1.10/topics/logging/#examples 2016-12-28 9:45 GMT-06:00 Philip Lee <redstone-c...@163.com>: Please help! The question are also posted here http://stackoverflow.com/questions/41363888/django-doesnt-email-reporting-an-internal-server-erro

Django doesn't email reporting an internal server error (HTTP status code 500)

2016-12-28 Thread Philip Lee
Please help! The question are also posted here http://stackoverflow.com/questions/41363888/django-doesnt-email-reporting-an-internal-server-error-http-status-code-500 I could send mail using the following code E:\Python\django-test\LYYDownloaderServer>python manage.py shell Python 3.5.2

Shout out to Grove Collaborative for django-sql-explorer

2016-09-03 Thread Lee Hinde
Just did a quick report for a client with django-sql-explorer ( https://github.com/groveco/django-sql-explorer) and once again I'm grateful for its existence. Highly recommended for quick ad-hoc reporting. (no relationship except that I'm a Grove Co customer so I can give back a little bit.) --

Re: Clarifying Project vs Apps

2016-08-24 Thread Lee Hinde
On Wed, Aug 24, 2016 at 9:23 AM, Rich Shepard <rshep...@appl-ecosys.com> wrote: > On Wed, 24 Aug 2016, Lee Hinde wrote: > > My tuppence. >> > > Lee, > > Before or after Brexit? The value might change. :-) > > No, an app is a logical grouping of objects/

Re: Clarifying Project vs Apps

2016-08-24 Thread Lee Hinde
> On Aug 24, 2016, at 8:48 AM, Rich Shepard wrote: > > While I think that I understand the differences between a project and its > apps there remains one point of uncertainty. I've not found the answer, > although it might be in the 1.10 docs or on the Web and I've

Best way to keep the current selection

2016-07-26 Thread Lee Hinde
I'm wondering if there's a better way to maintain a selection of records across calls to the app. In one of my projects users can do ad-hoc searches; i.e., Last Name = Smith, Class Name = Yoga, etc. They do the search, then get the query results presented in a table. Then they can do things

Re: Error uploading images

2016-07-02 Thread Lee Hinde
Aargh. Thanks. On Saturday, July 2, 2016, Vijay Khemlani <vkhem...@gmail.com> wrote: > The typical problem is forgetting to add the > > enctype='multipart/form-data' > > attribute to the form tag > > > > On Sat, Jul 2, 2016 at 9:40 PM, Lee Hinde <leehi...@gma

Error uploading images

2016-07-02 Thread Lee Hinde
Using django-storages to put user uploaded files on s3. Uploading images in the shell works fine. So, I assume I've got django-storages and boto installed fine and S3 configured correctly. Uploading in real-life, doesn't work. The error I get back is that the image field is required. The model:

Re: LoginRequiredMixin ignored

2016-06-16 Thread Lee Hinde
I always assume it's me. That was some errant copy and paste. Thanks! On Wed, Jun 15, 2016 at 11:51 PM, Babatunde Akinyanmi <tundeba...@gmail.com> wrote: > Actually it's you. Please see inline: > > On Jun 15, 2016 11:56 PM, "Lee Hinde" <leehi...@gmail.com> wr

LoginRequiredMixin ignored

2016-06-15 Thread Lee Hinde
Using Django 1.9.7. I have the following class: class AddView(LoginRequiredMixin, CreateView): template_name = "entry.html" model = Property form_class = AddPropertyForm success_url = "/buy/" login_url = '/account/login/' def dispatch(self, request, *args, **kwargs):

Re: Absolute beginner step by step

2016-06-11 Thread Lee Hinde
https://leanpub.com/tangowithdjango19/ > On Jun 11, 2016, at 2:07 PM, Gary Roach wrote: > > If you don't mind working with Python2.7 and Django 1.7 you might try "Tango > With Django" . It is out of date but still is a good

Design an encrypted time-limited API on Client/Server side

2016-06-09 Thread Philip Lee
I am planning design an encrypted time-limited API on both Client and Server sides, the server side is written in Django, the client side is a GUI program which call the API by import requests c = requests.post("http://127.0.0.1:8000/VideoParser/;, data={'videoUrl': videoUrl }) The way it

Re: django css: general query on CDNs and crispy forms

2016-02-23 Thread Lee Hinde
On Feb 23, 2016, at 5:27 PM, clarksonchri...@gmail.com wrote: > > Should i download bootstrap properly or do the CDNs suffice? Your call; but if you want to have a plan B, here’s an example: http://www.hanselman.com/blog/CDNsFailButYourScriptsDontHaveToFallbackFromCDNToLocalJQuery.aspx

Re: Could not parse the remainder template inheritance

2016-01-02 Thread Lee Hinde
If you’re just getting your feet wet and don’t want to invest in an editor/IDE just yet, try TextWrangler: http://www.barebones.com/products/textwrangler/ It’s free and won’t get in your way. > On Jan 2, 2016, at 8:11 AM, Matthew

Ask for help

2015-11-19 Thread Cision Lee
*When I migrate the database, I meet some errors, and errors are following:* > Operations to perform: > Synchronize unmigrated apps: staticfiles, messages > Apply all migrations: admin, contenttypes, api, auth, sessions > Synchronizing apps without migrations: > Creating tables... >

Re: Errors in tests when working through contribution tutorial

2015-10-12 Thread Lee Cartwright
Hi Tim, I hadn't considered that. I'll try with a different version of Python 3. Thanks, Lee On Monday, 12 October 2015 18:54:51 UTC-7, Tim Graham wrote: > > Hi Lee, I think the issue is that the tests don't pass on Python 3.5 at > the commit where the contributing was tutorial was au

Errors in tests when working through contribution tutorial

2015-10-12 Thread Lee Cartwright
ecause something isn't quite right in my development set up but I haven't been able to figure out exactly what. If anyone can give me some pointers as to what I should check I'd really appreciate it. OS: Mac OS X Yosemite (10.10.5) Python: 3.5.0 Thanks, Lee -- You received this message be

Query question

2015-08-17 Thread Lee Hinde
Given this model, I want to find all ProductSale objects that have expired and where the Person doesn't have a later (unexpired) purchase of the same product. class ProductSale(models.Model): product = models.ForeignKey(Product) person = models.ForeignKey(Person) ... date_expires =

Limit initial admin queryset

2015-07-23 Thread Lee Hinde
I have a model - Registrations. 97% of the time a user wants to see 'todays' registrations when viewing this model in admin. Is there a way to set the initial display of records, but allow full access thereafter? The example in admin.get_queryset assumes I want to manage each query. In my case, I

Re: Easy to use graphical reporting tools for SQL

2015-07-21 Thread Lee Hinde
https://github.com/epantry/django-sql-explorer You can build the queries and they're available to whomever you want to give access. This assumes they have access to the django app. On Mon, Jul 20, 2015 at 2:09 PM, Kevin wrote: > In our office we have a Django

Re: Is there a plan to modernize Django-admin?

2015-07-21 Thread Lee Hinde
On Sat, Jul 18, 2015 at 12:25 AM, Stuart Longland < stua...@longlandclan.yi.org> wrote: > On 18/07/15 11:00, Ezequiel Bertti wrote: > > Do you already see this project? > > > > https://github.com/sshwsfc/django-xadmin > > Unfortunately their homepage just swears at me in Chinese.

preserve data when migrating ForeignKey to ManyToManyField

2015-07-14 Thread A Lee
I'd like to change a ForeignKey field into a ManyToManyField, preserving existing data by creating entries in the many-to-many through table. Running makemigrations after changing the model class creates a migration that executes a RemoveField on the existing ForeignKey field and then an

Custom Users and ios django questions

2015-07-06 Thread Lee Kazushi
Hi everyone, I am newbie in django so i'm a bit confused on some features. I have to do a project for university. It consists in a desktop-web app where employees can do some staff like handle files, recording files, uploading files on a mysql database, and an ios native app (written in

Re: Possible bug in django 1.8 when following tutorial part 5

2015-05-20 Thread Mohd Lee
I just found out that it's actually caused by django-suit. They've had the fix checked in. On Wednesday, May 20, 2015 at 5:46:34 PM UTC+8, Mohd Lee wrote: > > Hi guys, I notice this warning in the console when following tutorial 4 & > 5 in django 8 with Python 3.4: > ..

Possible bug in django 1.8 when following tutorial part 5

2015-05-20 Thread Mohd Lee
Hi guys, I notice this warning in the console when following tutorial 4 & 5 in django 8 with Python 3.4: ...django/venv/lib/python3.4/site-packages/django/templatetags/future.py:25: RemovedInDjango19Warning: Loading the `url` tag from the `future` library is deprecated and will be removed in

Re: Django 1.8 data migrations not able to locate related collections

2015-04-17 Thread A Lee
Hi Markus, thanks for the fast response! Yup, that did the trick. I had to do some manual copypasta into the stable/1.8.x branch to get it to run but it appears that was the issue. On Fri, Apr 17, 2015 at 9:45 AM, Markus Holtermann <i...@markusholtermann.eu > wrote: > Hi A Lee, > &g

Django 1.8 data migrations not able to locate related collections

2015-04-16 Thread A Lee
Hello, After upgrading to 1.8 from 1.7.7 our tests are now unable to create test data via data migrations and complain about related collections not existing as attributes for some but not all models (exception stack trace at https://travis-ci.org/virtualcommons/vcweb). It appears to succeed

Testing posts to S3

2015-02-11 Thread Lee Hinde
I'm using django storages/boto to push json files to s3 where they are to be read by a different app. I'd like to test the file push by using the Test Client to see if the file is present on S3. client = Client() r = client.get(url, content_type="application/json") In every case, r comes back

Re: Change keys in values dictionary.

2015-01-05 Thread Lee Hinde
essage.objects.filter(recipient__user__system_id=user_id).values('id', > 'subject') > > Collin > > On Friday, January 2, 2015 8:35:42 PM UTC-5, Lee Hinde wrote: >> >> If I do a query: >> >> messages = Recipient.objects.filter(user__system_id=user_id).values("

Change keys in values dictionary.

2015-01-02 Thread Lee Hinde
If I do a query: messages = Recipient.objects.filter(user__system_id=user_id).values("message__id","message__subject") and then {"data":list(messages)} jsonify it, I end up with: "data" : [ { "message__id" : "2f24d132-4321-4d63-868a-21de6fbc0d44", "message__subject" : "And

Re: Django REST Framework: How to add prefix in URL for versioning

2014-11-05 Thread Lee Hinde
Swap the urls: url(r'^v1/', include(v1_urls, namespace="v1")) url(r'^', include(default_urls, namespace="default")), On Wed, Nov 5, 2014 at 5:01 AM, Shoaib Ijaz wrote: > I am trying to create version for REST application. Here is my URL Examle > > www.myapi.com/foo

Re: djangoproject.com tutorial part 3

2014-10-21 Thread Lee
Im not sure I understand so maybe I am stating the obvious here... but "python manage.py runserver" shouldnt call the page. It should start your dev server. Then you call http://localhost:8000/polls as Daniel mentioned when the server is started. On Tuesday, 21 October 2014 18:14:34 UTC+1,

Re: djangoproject.com tutorial part 3

2014-10-20 Thread Lee
When you say nothing changes, how are you calling the page? And what do you see in your browser - any error message or stack trace or is it just a blank page? Also I assume the below were copied from the tutorial. Can you post the contents of the three files as you typed them in your code? On

Re: Config: DB or git?

2014-10-02 Thread Lee
Isnt convenience vs flexibility the difference between choosing to use a full CMS and choosing to use a web development framework? Id look for that in the former, but not the latter - though Im sure .net "programmers" would disagree ;-) On Thursday, 2 October 2014 12:23:15 UTC+1, guettli

Re: Help me: Django 1.6.4 + mod_wsgi Error

2014-09-18 Thread Yj Lee
I have same issue on my local computer. please help me, 2014년 7월 10일 목요일 오전 8시 18분 4초 UTC+9, Russell Keith-Magee 님의 말: > > Hi LongYuan, > > It's difficult to say for certain, but it looks to me like your Django > install is corrupted. The error you're seeing indicates that an import is >

develeopment servers stops at syntax error.

2014-09-12 Thread Lee
Providing the actual error and traceback would be the only way we can really help you. Could you paste that here? 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

Re: tracking intent during password reset process

2014-09-06 Thread Lee Hinde
gt; and resets. This keeps most of the routing intact, but gives you a hook to >> redirect on in a later stage. >> However, I'm not using django-registration so I can't give you any >> examples. >> >> >> On Friday, September 5, 2014 11:23:54 PM UTC+2, Lee Hinde wrot

tracking intent during password reset process

2014-09-05 Thread Lee Hinde
I have three primary levels of access in my project. The public at / Instructors at /instructor/ Staff at /staff/ The issue is with the password reset process. If someone comes to /instructor/ and then goes through the password reset process I want them to end up at /instructor/ when they're

Re: cms web buyilding

2014-08-18 Thread Lee
Did you even read the replies you already received? I can't help but think you are trolling this board and on that basis, this'll be the last time I respond to any of your questions. -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: cms web buyilding

2014-08-16 Thread Lee
Most cms' of that ilk fits a very specific set of needs. Once you need to move outside the mould they give you and need to customise it for a specific business requirement, without some level of understanding of coding and the chosen cms' underpinnings he'll find it very difficult to proceed

Re: Flatpages

2014-08-15 Thread Lee Hinde
I just logged into the backend to make sure the django_flatpage_sites table was populated and it is. On Fri, Aug 15, 2014 at 2:21 PM, Lee Hinde <leehi...@gmail.com> wrote: > Yes. > > > On Fri, Aug 15, 2014 at 2:10 PM, Collin Anderson <cmawebs...@gmail.com> >

Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes. On Fri, Aug 15, 2014 at 2:10 PM, Collin Anderson wrote: > SITE_ID is set, but is the correct site selected on the flatpage? > > -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and

Re: Flatpages

2014-08-15 Thread Lee Hinde
flatpages > without a trailing slash will not be matched. > Could it be that? > > > On Friday, August 15, 2014 1:58:49 PM UTC-5, Lee Hinde wrote: > >> Yes, it's a record in the flatpages table on the production side. >> >> >> On Fri, Aug 15, 2014 at 11:43 AM,

Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes, it's a record in the flatpages table on the production side. On Fri, Aug 15, 2014 at 11:43 AM, Collin Anderson wrote: > I also assume you added the page to the production database and not just > your dev database (if they're different)? > > -- > You received this

Re: Flatpages

2014-08-15 Thread Lee Hinde
Yes, ALLOWED_HOSTS is set. This site has been in production since late March, so it's otherwise a going concern. (1.6.x, which I didn't mention earlier). On Fri, Aug 15, 2014 at 11:37 AM, Lee Hinde <leehi...@gmail.com> wrote: > It's the only page; I'll double-check allowed hosts... &

Re: Flatpages

2014-08-15 Thread Lee Hinde
on[1] > > [1]https://docs.djangoproject.com/en/dev/ref/settings/#allowed-hosts > > > On Friday, August 15, 2014 12:40:43 PM UTC-5, Lee Hinde wrote: >> >> I added flatpages to a project and got it working fine locally, using dev >> server, but I get a 404 acc

Re: Flatpages

2014-08-15 Thread Lee Hinde
It's /test/. The flatpages admin form won't accept a url that doesn't begin and end in a slash. On Fri, Aug 15, 2014 at 10:55 AM, Collin Anderson wrote: > What is your page's url? Does it end with a slash? > > -- > -- You received this message because you are subscribed

Flatpages

2014-08-15 Thread Lee Hinde
I added flatpages to a project and got it working fine locally, using dev server, but I get a 404 accessing my test page when I push to production. Googling the issue, most common complaints fixed by making sure SITE_ID was set, and that's in place in my site. I'm not using middleware, I'm

Re: mixing python , php and django

2014-08-14 Thread Lee
If its just the two of you creating small web site projects then I doubt its worth the cost in time, effort and money for the added complexity that would be present with using two different server side languages. I'd suggest working out some common ground personally, rather than going that

Re: school website

2014-08-13 Thread Lee Hinde
You might check out: https://github.com/burke-software On Tue, Aug 12, 2014 at 7:24 AM, ngangsia akumbo wrote: > i have a website to build > > it will consist of 4 groups > students, staff, parents and courses > > students will have the following > profile > update >

Re: admin site not available after modifying base_site.html

2014-08-07 Thread Lee
You shouldn't need to run runserver.py directly. You should change into your project directory (where manage.py lives) and use: python manage.py runserver On Thursday, 7 August 2014 03:10:44 UTC+1, Eric G wrote: > > Yeah, I tried running the runserver.py script from the django-trunk file, >

Community blog posts

2014-08-01 Thread Lee
Am I the only one who gets irritated by the periodic mass re-posting of strings of old blog articles to the community feed on djangoproject? I want to see fresh stuff I've not seen before, not the same rubbish I ignored the first three times it was posted. Seems like a pretty cheap shot to keep

Re: Screenshot pdf from AWS hosted django app

2014-07-25 Thread Lee Hinde
On Fri, Jul 25, 2014 at 4:00 PM, Ralph Lewis wrote: > I am hosting a django webapp in AWS and that is running fine, no errors. I > now want to be able to take a screenshot of the first page of any pdf that > is uploaded to the webapp. I have not had any luck trying to

creating parent record as part of creating the child record

2014-07-16 Thread Lee Hinde
I need help understanding the flow of saving an object when using Model Forms and Create Views. I am using a CreateView class and a Model Form to create the line item of an invoice and the parent invoice as part of the same user process. - It's one step as far as the user is concerned. The

django admin

2014-07-10 Thread Lee
I don't want to come across as unhelpful but people will really appreciate it if you at least try the following: 1) Properly and clearly describe your problem 2) At least show what you've done so far to try to resolve it 3) Accept and action guidance those here have been kind enough to provide

Re: Beginning with a feature flag system

2014-07-09 Thread Lee
Godjango has a short video on waffle. Might be enough to give you an idea on how to use it https://godjango.com/31-django-waffle/ I've not watched it myself yet though -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this

Re: How to install Django on Windows - pip, command prompt.

2014-07-05 Thread Setiaman Lee
You can get and install python from activestate.com where pip is included. So you can run pip from command prompt. Rgrds Setiaman On 6 Jul 2014 11:44, "Sen" wrote: > I was going through >

Re: page not found errors for most urls but main landing page displaying okay

2014-07-01 Thread Lee
cript, my guess is that it is Apache not >> mapping the request to your WSGI file/fcgi script. Double check your >> htaccess file mod_rewrite directives. >> >> K >> >> >> >> On Wednesday, June 25, 2014 2:53:21 PM UTC-7, Lee wrote: >>> >>

Re: page not found errors for most urls but main landing page displaying okay

2014-06-25 Thread Lee
e: STATIC_ROOT = '/home5/user/public_html/project/static/' STATIC_URL = 'http://mysite.org/project/static/' Lee On Wednesday, June 25, 2014 3:36:52 PM UTC-4, Michael Lind Hjulskov wrote: > > Hi > > I had the exact same problem a few days ago. It was one of my templates > that su

page not found errors for most urls but main landing page displaying okay

2014-06-25 Thread Lee
view_select'), url(r'^interview/player/$', 'project.views.interviewPlayer', name='interview_player'), url(r'^interview/retailer/$', 'project.views.interviewRetailer', name='interview_retailer'), url(r'^popup/(?P.+)/(?P.+)/(?P.+)/(?P.+)/(?P.+)/(?P.+)/(?P.+)/(?P.+)/(?P.+)/$','project.views.popup',name='pop

testing equality in template tag

2014-06-25 Thread Lee Hinde
with view code like so: import calendar months_choices = [] for i in range(1,13): months_choices.append((i, calendar.month_name[i])) context['months'] = months_choices and context['default_month'] = today.month I have this snippet in a template (my

Re: Copied django project to shared host from repo - can't import settings

2014-06-25 Thread Lee
This worked, thank you! I don't understand why it worked, but pleased that it did. Lee On Wednesday, June 25, 2014 11:14:46 AM UTC-4, sacrac wrote: > > ok i make different configuration > > #!/home5/myorg/.virtualenvs/mydjango/bin/python > import sys, os > > # Add

Re: Copied django project to shared host from repo - can't import settings

2014-06-24 Thread Lee
ysite.settings' from django.core.servers.fastcgi import runfastcgi runfastcgi(method="threaded", daemonize="false") and for .htaccess I have - AddHandler fcgid-script .fcgi RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ mysite.fcgi/$1 [QSA,L] Thanks, L

Copied django project to shared host from repo - can't import settings

2014-06-24 Thread Lee
he project says there are no errors. Lee -- 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, s

Re: Registration in 1.8

2014-05-11 Thread Lee
What's the value in starting with 1.4? I'd start with the current release - 1.6.4 -- 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: I can't run django server nor activate the virtualenv

2014-05-03 Thread Lee
You are welcome, glad it helped :) -- 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, send email

Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Lee
s that you are not aware of, I assume its not your code? If so, I would expect wherever you got it from to have a list of the dependencies that the project needs to run (though usually they would be in the requirements file too) Thanks On Saturday, 3 May 2014 16:59:01 UTC+1, Lee wrote: > &

Re: I can't run django server nor activate the virtualenv

2014-05-03 Thread Lee
Can you copy the complete error across? The end of it is all important and its chopped off in the screenshot. Thanks On Saturday, 3 May 2014 16:25:57 UTC+1, Fred DJar wrote: > > Thanks > the second solution worked fine and the requirements were installed > > but again when i tried to run the

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
tent.com/-gdNSTYtOKlk/U2QolN3l6BI/BCc/Y3zkcISx5Nk/s1600/1.png> > > And trying the second solution gave me the message that rmvirtualenv : > command not found ! > > > On Friday, 2 May 2014 23:26:43 UTC+1, Lee wrote: >> >> So it looks like its uninstalling the Django

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
So it looks like its uninstalling the Django you already have installed in the global packages, in order to install the version specified in the requirements file, but is hitting a permissions error in doing so because you are not logged in as root (or elevating with sudo). I presume your

Re: I can't run django server nor activate the virtualenv

2014-05-02 Thread Lee
No, you were in the right locatin before. Look at your last screenshot. There was a file called requirements and you do it from there. If it does not work, please confirm what is in that requirements file -- You received this message because you are subscribed to the Google Groups "Django

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Also be aware that from the stack trace, it looks like you have django installed into the global site packages rather than your virtualenv. The main point of virtualenv is to avoid that and have isolated environments. But it's not really a problem as long as you are aware of the fact that you

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Next command: pip install -r requirements >From the directory where the requirements file is of course... And assuming >the requirements file has all the requirements of whatever you are trying to >run in it -- You received this message because you are subscribed to the Google Groups

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Enter the following command from the bin folder: *source activate* Thanks On Monday, 28 April 2014 11:03:40 UTC+1, Fred DJar wrote: > > > > > *Hello guys, i'm a newbie so bear with me :)I have installed python 2.7 > and django 1.6 on my desktop (ubuntu 14)but i can't run the application or >

Re: I can't run django server nor activate the virtualenv

2014-05-01 Thread Lee
Please be more specific about your problem as its difficult to help when we don't know exactly what you are seeing. Have you managed to activate your virtualenv on ubuntu? If not, what specific error are you getting? I see two problems here so far, regarding the import error, that means you

Re: Django

2014-04-25 Thread Lee
In case you dont see my email, I copy my reply here too: Hi, Your problem is in the results view function. I'm not sure what version of the tutorial you are following, but assuming you are using Django 1.6, the following: def results(request, poll_id): poll = get_object_or_404(Poll,

Re: Django

2014-04-24 Thread Lee
Can you share your views.py, result.html and urls.py? On Thursday, 24 April 2014 12:10:33 UTC+1, Srinivasulu Reddy wrote: > > > > On Wednesday, April 23, 2014 2:57:45 PM UTC+5:30, Srinivasulu Reddy wrote: >> >> Hi Folksl , >> >> >> In dealing with poll app tutorial 4 i am getting an error,

Re: views

2014-04-17 Thread Lee
Go through the tutorial linked in the other post before trying to write your own apps. That'll cover all the questions you just asked -- 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

Re: Django apps

2014-04-01 Thread Lee
Start here and follow the tutorial: https://docs.djangoproject.com/en/1.6/intro/tutorial01/ Then you may want to run through this if you are interested in the goe stuff: https://docs.djangoproject.com/en/1.6/ref/contrib/gis/tutorial/ That should give you a good idea on where to start with

  1   2   3   4   5   >