Creating a html table...

2010-08-05 Thread ROger
I want to create a html table containing taking from database , this table should be sortable and searchable.. How do i do that?? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups

Re: MultiPartParserError HTTP_CONTENT_LENGTH zero when uploading a file

2010-08-10 Thread Roger
I'm seeing the same symptoms. The rate is much lower than 1 in 5 - maybe 1 in 100 - but definitely the same error. Were you guys able to make any progress on a solution? On Aug 4, 1:17 am, hcarvalhoalves wrote: > Now that someone else mentioned, yes, I believe we have the same > problem. > > I

Latin-1 text from the database.

2007-06-03 Thread Roger
tried putting # -*- coding: iso-8859-1 -*- at the start of the modules concerned but no success. I would be most grateful for any help with this.. Roger --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users&

Newbie Question

2006-04-22 Thread Roger
Hi, As a newbie I have been working through the Django Tutorial. I must say it is very well written, even so I have hit a wall... I have activated the admin site, and created a superuser and can log in as the superuser. What I have sofar failed to do is to add the demo site (polls) to the admin

Re: (1040, 'Too many connections')

2007-08-17 Thread Roger McFarlane
aqw.py?query=2.24&querytype=simple&casefold=yes&req=search I ran into this problem as well, upgrading to the most recent MySQLdb seems to have done the trick. Roger On Aug 16, 12:34 pm, Michel Thadeu Sabchuk <[EMAIL PROTECTED]> wrote: > Hi guys! > > First of all, tha

Re: Not Django related, but would love your opinions

2008-07-10 Thread Roger Lancefield
> Hey everyone, > > This is not at all Django related but I know there are a lot of people > in this list that are smart fellas, so is this real or another one of > Google's April fools jokes: > > http://www.google.com/help/netneutrality_letter.html Just to worry you further, you might want to ta

Re: Root URI in templates

2006-06-14 Thread roger sun
hi, i just saw this documents, maybe it can help you. from django.conf.settings import the full url: http://www.djangoproject.com/documentation/settings/ On 6/14/06, plungerman <[EMAIL PROTECTED]> wrote: > > > limodou wrote: > > On 6/14/06, ChrisW <[EMAIL PROTECTED]> wrote: > > > > > > Let me r

how to integrate kid template with django

2006-06-14 Thread Roger Sun
hi, everybody. I don't like the django templates, can i use kid ? if can, how can i do then? thanks. -- welcome: http://www.webwork.cn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post

Re: how to integrate kid template with django

2006-06-14 Thread Roger Sun
Hi, Simon, Thanks for your help. ~_~. Best regards, roger On 6/14/06, Simon Willison <[EMAIL PROTECTED]> wrote: > > > On 14 Jun 2006, at 12:52, Roger Sun wrote: > > > I don't like the django templates, can i use kid ? > > if can, how can i do then?

why django has no api reference?

2006-06-15 Thread Roger Sun
Just like ruby's http://api.rubyonrails.org/ currently, i don't know where can i refer to these api, i hope the author can do this for us. ^_^ roger -- welcome: http://www.webwork.cn --~--~-~--~~~---~--~~ You received this message because you are sub

Re: why django has no api reference?

2006-06-15 Thread Roger Sun
exciting news, thanks , Jeroen and Steven. On 6/15/06, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED]> wrote: > > On 6/15/06, Steven Armstrong <[EMAIL PROTECTED]> wrote: > > [1] http://djangoapi.quamquam.org/trunk/ > > Ah cute. Now that might be useful to also have on the main site. > Adrian?

Re: HTTPS on development enviroment

2022-01-05 Thread Roger Gammans
when i open localhost it keeps loading without showing the > > results > > You might find mkcert ( https://github.com/FiloSottile/mkcert ), and easier and potentially safer way to create and managetemporary developer certs. obDNA: Certainly better than all that tedious mucking around wit

Re: ComboBox

2022-06-01 Thread Roger Gammans
Hi If any arbitrary text is allowable, then at the model level I'd just use a CharField. I wouldn't add a choices= argument to the field unless is the value is strictly constrained to those choice as other test would then fail validation. At the Form level, I'm not sure. I'd probably work just mi

Re: Problems sending email with django

2022-06-09 Thread Roger Gammans
Hi I've used mailjet in a Django app. Both using the rest API with requests, ( for our transactional mails )and via authenticated SMTP for our error alerts. I don't recall any specific challenges on the Django side , although setting up domain vaith was a bit more involved iirc. Are you havin

Re: Custom user model password is not hashed

2023-01-25 Thread Roger Mukai
@Tejas or @Sebs, do you still have a question how to do this? I think I figured it out On Tuesday, December 6, 2022 at 7:25:08 PM UTC-5 sebs...@gmail.com wrote: > Hey *Ben*, please help with the repo for the same code. I'm getting same > error > here. > > On Saturday, 7 May 2022 at 22:37:32 UT

How to set up Apache to serve up django websites?

2011-10-24 Thread Roger Marcus
the following traceback error: File "/home/roger/projects/playground/feincms_env/lib/python2.6/site-packages/django/core/handlers/base.py", line 39, in load_middleware for middleware_path in settings.MIDDLEWARE_CLASSES: File "/home/roger/projects/playground/feincms_env/

Re: How to set up Apache to serve up django websites?

2011-10-25 Thread Roger Marcus
of what is needed for other travelers on this road. thanks, Roger Marcus On Oct 25, 11:16 am, Reikje wrote: > On a side note, I can recommend this > book:http://www.packtpub.com/django-1-1-testing-and-debugging/book > They have an entire chapter for running Django on Apache.

Re: Missing peice before best practises

2013-06-26 Thread Roger Barnes
Is there something that the Django documentation itself is lacking? https://docs.djangoproject.com/en/dev/topics/install/#installing-official-release On Wednesday, 26 June 2013 16:56:49 UTC+10, Sayth Renshaw wrote: > > So I turned to the django book online, but have a lack of faith here as > the

Re: Python Fabric manage.py problem

2013-07-03 Thread Roger Barnes
eant I had to use django-admin.py, so if the above doesn't work, this might: def manage(*args): return _ve_run("django-admin.py " + ' '.join(args) + " --pythonpath . --settings %s%s" % (env.settings,)) Hope that helps, - Roger On Monday, 1 July 2013

Multiple databases

2015-05-18 Thread Roger Dunn
I'm spinning up a new project and nearly all of the data I need to store can be normalized. Along with this normalized data is one piece that is better suited to a nosql database. The use case is that the normalized data will be fetched often, is very tabular in nature, and the additional data

n00b question - using Django for web services

2014-09-22 Thread Roger Rustad
I have a limited progamming background (C++ in school 10+ years ago) and am needing to setup an API framework to take HTTP callbacks from landing pages (e.g. Unbounce). Given my following requirements and conditions, is Django what I want to use and where is the best place to start? - forms

Re: Django channels with python background tasks

2018-05-27 Thread Roger Gammans
I think there is a little bit of confusion in this thread,a s we keep talk about django and the deamon process and ignoring the frontend. So to clarify; there we are talking about a system with at least 3 execution environments: 1 The Browser2 Django backend processes3 The backend daemon/cli -proce

Re: Django channels with python background tasks

2018-05-27 Thread Roger Gammans
ng together. This is probably the most advanced solution though. I'm sorry this is not a lot more help, it is all up to understanding what your comfortable with *exactly*  what you want to achieve from here. On Sun, 2018-05-27 at 02:22 -0700, Sourabh Jaiswal wrote: > Hi Roger, > Thanks f

Re: channnels -- communication with redis

2019-01-15 Thread Roger Gammans
nvironment. -- Roger Gammans Gamma Science On Tue, 2019-01-15 at 18:49 +0200, Yuval Bachrach wrote: > I did not configure anything, which is probably the problem..I am > following the tutorial. I just did what the tutorial instructed to > do: So I have installed docker as instructed but

Re: Re: Composite Primary / Foreign Key support

2019-02-18 Thread Roger Gammans
to need to invest in understanding the ORMs internals. HTH, -- Roger Gammans Gamma Science On Mon, 2019-02-18 at 08:26 +, 'Ellinghaus, Lance J' via Django users wrote: > > ONCONFIDENTIAL // EXTERNAL > So, basically, Django will not be supporting Composite Pri

Re: TypeError unsupported operand type(s) for *: 'NoneType' and 'int'

2019-04-07 Thread Roger Gammans
itialised your instance from the database (or set a won value when creating the object). If you expected to have a default value you need to set one where you set up self.won see : https://docs.djangoproject.com/en/2.2/ref/models/fields/#default HTH, -- Roger Gammans -- You received this me

Re: Server Error (500)

2019-04-08 Thread Roger Gammans
Did you run 'python manage.py migrate' ? Did it come back with any errors? I ask because specifying price field for values up to 10^9998 strikes me as extreme an likely to causes problems; perhaps you meant max_digits=7 not 1 . On Mon, 2019-04-08 at 04:26 -0700, fazal rehman wrote: > Hell

Re: Django channels on IIS

2019-05-24 Thread Roger Gammans
On Thu, 2019-05-23 at 22:17 -0700, Daniel Butler wrote: > It looks like I found my key I had to install the application module > CGI then use this library to get everything to work! > https://pypi.org/project/wfastcgi/ Does that support websockets? IIS itself seems to ( https://docs.microsoft.c

Re: Django to exe ... windows executable

2019-07-03 Thread Roger Gammans
d. There is also briefcase: https://beeware.org/project/projects/tools/briefcase/ I've not used it ; so this isn't a recommendation; just a head up that it exists; but does it seems to have explicit django support, if that's important -- Roger Gammans Gamma Science Ltd. (GB Nr.

Channels - Forward messages from a third party async source.

2017-09-01 Thread Roger Gammans
ody got any thoughts? -- Roger Gammans -- 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 gro

Re: Channels - Forward messages from a third party async source.

2017-09-04 Thread Roger Gammans
es > like this, but that's not something that's ready in the short term. > > Andrew > On Fri, Sep 1, 2017 at 3:56 AM, Roger Gammans co.uk> wrote: > > Hi all, > > > > > > > > I'm trying to build a system with a Django frontend which

Re: Django Websockets / Several Users on the Website

2017-10-13 Thread Roger Gammans
One architecture you could consider, is to put all the sensor values into redis or similar. Have a worker to out the values into redis from the automation source. Then use each websocket recieve event to add the reply channel to the group which gets the appropriate sensor value. You will probably

Re: Django and Angular2/4 example project

2017-10-16 Thread Roger Gammans
Hi, I'd certainly be interested in helping with such a project; as I current have two angular.io/Django projects here. We've been concentrated more on the such thinks and enhance runserve; to also spawn 'ng build' in another process so the developer experience was smooth. ng.io components for dj

Re: [django-channels] How to close websocket connection from server?

2020-04-06 Thread Roger Gammans
Don't you just have to send a message to an appropriate group which contains just that users/sessions connections/consumers and in the message handler on the consumer call 'self.close()' and remove the consumer from any subscriptions. If I understand the docs, in the disconnect method is still ca

Re: [django-channels] How to close websocket connection from server?

2020-04-06 Thread Roger Gammans
oup"? > > I thought there's a way to decode JWT, get user ID from it and then > somehow: > > channels = get_channel_layer(): > for ws in channels.get_connections_for_user(user_id): > ws.close() > > but i couldn't find a way > On Monday, 6 April 2020

Re: [django-channels] How to close websocket connection from server?

2020-04-06 Thread Roger Gammans
or any random view which knows nothing > about clients-communicatiors. only about a user, whose connections > must be closed. > > maybe, you're right, and i'm thinking about it the wrong way > > On Monday, 6 April 2020 15:28:44 UTC+4, Roger Gammans wrote: > > I thin

Re: font awesome loading problem

2020-04-09 Thread Roger Gammans
Hi, that looks like it's your s3 bucket setup. s3 is not supporting the CORS (cross-origin -request-security) check requests the browser is making. I googled "s3 bucket cors" and found this which looks like in contains the answers you are looking for. https://docs.aws.amazon.com/AmazonS3/latest/de

Re: Using external libraries for analytics

2020-04-13 Thread Roger Gammans
there are quite a few js visualisation tools (often based on d3), restricting myself to just the open source ones, I can find/know about nvd3js, dygraphs, chart.js, n3-charts, c3 and more. There are many alternatives and it can definitely be done a) open source, and b) without uploading the data to

Re: Confused...Django vs Django CMS/Wagtail and value of 'CMS' vs plain Django framework?

2020-06-08 Thread Roger Gammans
Hi Move Wagtail and and Django-CMS are applications you install in your INSTALLED_APPS setting settings.py to add CMS functionality to a Django project, so you can use these applications as you only app in django projects, or alongside your own custom apps, or other downloaded apps. Django cms

Re: DB Router default issue

2020-07-14 Thread Roger Gammans
In allow_migrate () where you have 'return False', I've ended up (in my otherwise very similar router) with: return db != 'mydb' You certainly don't want return False as that will disable all migrations outside of your app_label, you want to return True,only in the cases when the db is not

Invalid SQL : - Re: Query Optimization (Huge Data in the Database)

2020-07-19 Thread Roger Gammans
or view column in any nonaggregate expression in the list must be included in the GROUP BY list" (quote from MS TSQL docs which was just the first hit my google search found) . And the name and create_at columns are missing in the GROUP BY clause in the quoted SQL statement. It seems unl

Re: Invalid SQL : - Re: Query Optimization (Huge Data in the Database)

2020-07-19 Thread Roger Gammans
Thank you for that fascinating excursion. On Sun, 2020-07-19 at 07:48 -0700, karthik challa wrote: > Hi Roger, > > I have fetched this query from the Django Debug tool bar. I am using > POSTGRES database and Django 2.2.3 version. > > I am able to fetch the records which i require

Re: Django key/value JSON widget

2020-08-19 Thread Roger Gammans
Hi Thanks that looks useful. On my rather long TODO list is to turn use this ( https://github.com/josdejong/jsoneditor) npm package to build a less restrictive json widget... On Mon, 2020-08-17 at 14:42 -0700, Federico Capoano wrote: > Since I wasn't able to find a package which had this kind of wi

Re: "RuntimeError: Error creating new content types."

2015-10-08 Thread Roger Hunwicks
On 1.8 `--fake-initial` only works if you have a single initial migration per app. We don't because we have additional migrations to load data and create database triggers, etc. In 1.9 this will be handled by the `initial = True` setting on the Migration class. Until then, we are using: ./ma

Migrating older 1.4 project to 1.9

2016-03-29 Thread Roger Dunn
I've inherited a moderately large project written 2 years ago using Django 1.4, and wondering if it is worth creating a fresh 1.9 project and porting in the old code, or doing an in-place upgrade to 1.9? I have it running on 1.4 'as is' but if I run* python manage.py migrate* it comes unglued a

Re: Help

2018-07-08 Thread Roger Gammans
Umar, IIRC - (and it's been a while since I used windows) - Windows maintains a global flag for internet connectivity.  Unfortunately if windows  decides it's not connected , bad many apps such as Internet Explorer, Edge etc, refuse to attempt to make any TCP connections even if they are to localho

Re: Django on IIS

2018-12-18 Thread Roger Gammans
YVWO5bFTx > > %3D6im_dLWwPWz1FoDcFVDN9GXREj%3Dp49f2FcA%40mail.gmail.com?utm_mediu > > m=email&utm_source=footer>. > > > > > For more options, visit https://groups.google.com/d/optout. > > > > > > Hi, I was looking at this back in November.

Re: Django on IIS

2018-12-18 Thread Roger Gammans
the FastCGI Settings. > > Anyone know what I may be doing wrong or how to proceed? > > > On Tue, Dec 18, 2018 at 4:35 AM Roger Gammans > wrote: > > Hi, > > I was looking at this back in November., although I'm not a > > Powershell or Windows expert I start t

Re: Django on IIS

2018-12-18 Thread Roger Gammans
On 18 December 2018 17:28:41 GMT, Larry Martell wrote: >Get-WindowsFeature shows that web-cgi is installed but not iis-cgi. >Are these the same? > Maybe. I think they Microsoft renamed on to the other. My script was for the most recent iteration of windows server. -- Sent from my Android devic

Re: Django on IIS

2018-12-18 Thread Roger Gammans
;C:\python36\python.exe" in my case. ) Which is the command line version of point 2 above. IIS also a has a tendency to read a web.config XML in the IIS site root; from which I think a lot of this can be set from. You can certainly set environment variable there (such as PYTHONPATH , or DJANGO_

Re: Having problem with a api data

2020-10-10 Thread Roger Gammans
This is really a JavaScript question not a Django one. But since I can see the problem... , The issue is 'dissmal-info' isn't a valid Js identifier, the browser is trying to subtract the nonexistent 'info' variable from the 'dismissal' value. You should be able to use ['dismissal-info'] instea

Re: Python libraries for visualisations

2021-03-15 Thread Roger Gammans
Plotly comes to mind. there are quite a few charting libraries in this python/web space. Google is as always your friend. But at the end of the day the best UX is always going to come from a library with a significant JS component. If you don't want to worry to much about JS plotly's py component

Re: Unique and null

2021-04-07 Thread Roger Gammans
Hi All, Let shed some actually light on the whole problem, before people start piling in. This is mostly (form the Django perspective) and issue with CharFields, because a CharField can store None or ''. For values of '' in CharField, IIRC, django will convert them to null, with null=True, blank=

Re: Unique and null

2021-04-07 Thread Roger Gammans
I should have said SQL specifies NULL compares Non-equal, the ORM converts None's in python to NULL in SQL for you, as well as all the other things it does On Wed, 2021-04-07 at 15:25 +0100, Roger Gammans wrote: > Hi All, > Let shed some actually light on the whole problem, before peo

Re: Unique and null

2021-04-08 Thread Roger Gammans
On Thu, 2021-04-08 at 16:36 -0500, Ryan Nowakowski wrote: > On Wed, Apr 07, 2021 at 03:25:53PM +0100, Roger Gammans wrote: > > This is mostly (form the Django perspective) and issue with > > CharFields, > > because a CharField can store None or ''. For values of &#x

Re: Aide pour erreur

2021-06-10 Thread Roger Gammans
Hi My french isn't great, and this list mostly uses English, so you'll probably get a better response if you can post in English even if you resort to google translate (like I have below ) but I think the intent of your email was clear. Your error was "view stocksystema.views.home didn't return an

Mocking models or at least creating Fakes.

2019-07-24 Thread Roger Gammans
27; I'm sure someone here must have had to write unit test which deal with foreign jets before what approach did you end up taking? -- Roger Gammans Gamma Science -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe f

Re: Mocking models or at least creating Fakes.

2019-07-24 Thread Roger Gammans
turn fake thingy_getter = property(getter) out = m.Foo( title ="") with unittest.mock.patch.object(out.__class__,'thing',thingy_getter): self.assertEqual(out.title,"") I'm still interested in other possible solutions out there . --

Re: django+rasperrypi_sensor

2019-10-15 Thread Roger Gammans
Can you define what you mean by real-time? There are many way to achieve this depending on your other needs, for instance if you need the server (the raspberrypi) to push the data, it's suddenly not really a beginners task as you have to think about whether to use websockets , or long polling. (or

Re: Django issues on upgradation

2019-10-27 Thread Roger Gammans
Hi , Looking at the second problem only ( https://stackoverflow.com/questions/58568561/nonetype-object-has-no-attribute-render-context ) I can't see any thing obviously wrong with the call you show. django.template.backends.Template.render() ; which you can see called in your backtrace on SO, s

Re: Tracking IP

2020-01-21 Thread Roger Gammans
Hi The precise details of this depend on your hosting environment, but the canonical method is request.get_host() ; see https://docs.djangoproject.com/en/3.0/ref/request-response/#django.http.HttpRequest.get_host If your hosting environment is non-standard; you might need some custom middlewar

Re: iterate through list

2020-02-14 Thread Roger Gammans
Use: for data in Journal.objects.all(): On Fri, 2020-02-14 at 14:13 +0100, Kai Kobschätzki wrote: > Hi: > > I want to do something with the content of a table. Problem is, that > the > IDs are not continuous. I tried: > > import .models from Journal > > last = Journal.obejects.l

Re: iterate through list

2020-02-14 Thread Roger Gammans
No problem, It 's all explained here : https://docs.djangoproject.com/en/3.0/ref/models/querysets/ On Fri, 2020-02-14 at 14:27 +0100, Kai Kobschätzki wrote: > Hi Roger: > > Thanks a lot! Such as easy :) > > Greetings > > bengoshi > > > On 2/14/20 2:

Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Roger Lanoue jr
roxy_pass http://app_server; } My goal is to get the Django suit working. I do not see anything in my static files directory for the admin suit so the css can be applied. I am missing something very simple to get this working. Thank you for taking time to look at this and wish to get some cl

Django suit and Static files not working in Django 1.6

2016-06-02 Thread Roger Lanoue jr
ic directory. nothing had been copied. Thank your for taking time to look at this and also sharing with me any clues on how to fix this. Roger -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop

Re: Django Suit admin panel - Static files configuration Django 1.6 not working

2016-06-02 Thread Roger Lanoue jr
Should i start using Django 1.8 or 1.9 before configuring the server? On Thursday, June 2, 2016 at 10:35:20 AM UTC-4, luisza14 wrote: > > Where is STATIC_ROOT ? > > static_root path needs to match with nginx /static location. > > > > El miércoles, 1 de junio de 2016, Rog