No module named servers.basehttp

2011-07-29 Thread bob gailer
I am following the tutorial. runserver ran fine until I added the
admin feature.

Now I enter  D:\Python26\Lib\site-packages\django>d:\Python26\python
mysite/manage.py runserver

Traceback (most recent call last):
  File "mysite/manage.py", line 14, in 
execute_manager(settings)
  File "d:\Python26\lib\site-packages\django\core\management
\__init__.py", line 438, in execute_manager
utility.execute()
  File "d:\Python26\lib\site-packages\django\core\management
\__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
  File "d:\Python26\lib\site-packages\django\core\management
\__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
  File "d:\Python26\lib\site-packages\django\core\management
\__init__.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name,
name))
  File "d:\Python26\lib\site-packages\django\utils\importlib.py", line
35, in import_module
__import__(name)
  File "d:\Python26\lib\site-packages\django\contrib\staticfiles
\management\commands\runserver.py", line 4, in 
from django.core.management.commands.runserver import
BaseRunserverCommand
  File "d:\Python26\lib\site-packages\django\core\management\commands
\runserver.py", line 9, in 
from django.core.servers.basehttp import AdminMediaHandler, run,
WSGIServerException
ImportError: No module named servers.basehttp

How do I fix this?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Unknown command: 'startproject'

2011-08-01 Thread bob gailer
I am a VERY frustrated Django newbie. I can get so far in a tutorial,
only to run into a roadblock. (several of them). Today I decided to
start over from scratch. Now I can't get past django-admin.py
startproject mysite. get Unknown command: 'startproject'. This worked
the previous times.

What am I doing wrong? Can someone provide any help or guidance?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Unknown command: 'startproject'

2011-08-02 Thread bob gailer
Thank all of you for your responses. I ran checkdsk, ensured no
remnants of the original install were around, reinstalled django now
it all works.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: No module named servers.basehttp

2011-08-02 Thread bob gailer
I ran checkdsk, ensured no remnants of the original install were
around, reinstalled django now it all works.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django-registration - stuck at Required templates topic

2011-08-04 Thread bob gailer
I followed the installation & configuration of django-registration up
to the start of the Required templates topic. After that I am very
lost. "In the default setup, you will need to create several templates
required by django-registration" I have little idea what to do or
where to do it.

Reading error messages led to the (apparantly successful) idea of
putting templates in D:\django\mysite\templates\registration. But now
what? I presume the form must have a submit button. To what URL would
it get submitted and what names does it use for the user-entered
fields?

Or am I totally misunderstanding something.

Any help appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-registration - stuck at Required templates topic

2011-08-04 Thread bob gailer


On Aug 4, 11:47 pm, Mario Gudelj  wrote:
> Hey Bob,
>
> You can download some basic templates for this 
> pagehttp://devdoodles.wordpress.com/2009/02/16/user-authentication-with-d...

OK - did that - now what? I can get the login form displayed - when I
click get:

Forbidden (403)

CSRF verification failed. Request aborted.
Help

Reason given for failure:

CSRF token missing or incorrect.


In general, this can occur when there is a genuine Cross Site Request
Forgery, or when Django's CSRF mechanism has not been used correctly.
For POST forms, you need to ensure:

The view function uses RequestContext for the template, instead of
Context.
In the template, there is a {% csrf_token %} template tag inside
each POST form that targets an internal URL.
If you are not using CsrfViewMiddleware, then you must use
csrf_protect on any views that use the csrf_token template tag, as
well as those that accept the POST data.

I have no idea what to do with that message.

I need a lot more hand-holding, since I am VERY new to django.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: django-registration - stuck at Required templates topic

2011-08-05 Thread bob gailer
I have stumbled around following various pieces of advice:

added to views:
from django.core.context_processors import csrf

modified views to end with:
form = ContactForm()
c = {}
c.update(csrf(request))
c['form'] = form
return render_to_response('contact_form.html', c)

modified contact_form.html:
  {% csrf_token %}

The first bullet in the error message:
The view function uses RequestContext for the template, instead of
Context.
  makes no sense - even after attempting to read what the
RequestContext link points to.
|
now what?

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Problem with django book in Forms chapter 7

2011-08-06 Thread bob gailer
I love the django book. Until I got to the section "Tying Your First
Form Class".

Problem:-"This class can live anywhere you want — including directly
in your views.py file — but community convention is to keep Form
classes in a separate file called forms.py. Create this file in the
same directory as your views.py" The examples then use from
contact.forms import ContactForm. Where did contact come from? I had
to remove it to get the import to work!

Then all is OK until "Tying Form Objects Into Views". Here is where I
run into the
CSRF verification failed. Request aborted.
Reason given for failure:CSRF token missing or incorrect."

After much searching I found:

from django.template import RequestContext
...
form = ContactForm()
return render_to_response('contact_form.html', {'form': form},
 
context_instance=RequestContext(request))
and now it works.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



django-registration

2011-08-06 Thread bob gailer
I indstalled django-regstration per the Quick-Start guide:

easy_install -Z django-registration

manage.py syncdb

I added
 'registration',
to
INSTALLED_APPS = ()
and
ACCOUNT_ACTIVATION_DAYS = 7

I added
(r'^accounts/', include('registration.backends.default.urls')),
tp my urls.py

At this point I start to worry because of "could" and "would"
appearing in the instructions.
 I then start reading other topics - and feel very lost.
- User registration backends
- The default backend
- Forms for user registration
- Registration views
It seems from reading these that there should be forms and views code
ready-to-go - but I can't find them.

Where - how - does this package get installed? Where do I find the
code?

I've searched for "registration" Nothing relevant appears. What am I
missing>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: cms web buyilding

2014-08-16 Thread Bob Gailer
Go to the joomla site and see what you think.

Bob gailer
On Aug 16, 2014 6:05 AM, "ngangsia akumbo"  wrote:

> I was having an augment about learning how to code from scratch and using
> content management systems like joomla, dupal to build websites.
>
> This guy was telling they can make any web application using Joomla the
> the other cms out there.
> He does not need to learn coding.
> so if that was possible why do people still learn how to code from scratch?
>
> So i need to get your opinion about this?
>
>
>
>  --
> 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 to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/5383030b-f2bb-4a8a-b3ed-5064e462d966%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/5383030b-f2bb-4a8a-b3ed-5064e462d966%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO7Vz_U3PRPHQDceMDfvdnFPc1jqy6MdRiY%2B%3DE4_6sGWhw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: csrf question

2014-05-15 Thread Bob Gailer
On May 15, 2014 2:36 AM, "G Z"  wrote:
>
> So I read the documentation on passing csrf tokens, however its giving me
an issue i think its because im trying to pass it as a dictonary variable
with my form and customers.
>
> This is from the documentation
>
> from django.views.decorators.csrf import csrf_protect
> from django.shortcuts import render
>
> @csrf_protect
> def my_view(request):
> c = {}
> # ...
> return render(request, "a_template.html", c)
>
>
>
> from django.shortcuts import render
> from django.http import HttpResponse
> from vmware.models import Customer
> from django.shortcuts import render_to_response
> from vmware.models import Vms
> from .forms import SignUpForm
> from vmware.models import Vmspecs
> from django.views.decorators.csrf import csrf_protect
>
> @csrf_protect
> def index(request):
> c = {}
> form = SignUpForm(request.POST or None)
> if form.is_valid():
> save_it = form.save(commit=False)
> save_it.save()
> customers = Customer.objects.all()
> ctx = { 'customers':customers, 'form':form, c}
Line 19 (above) syntax error at /, c/
> return render_to_response('index.html', ctx)
>
>
>
> this is the error i get
>
>
> Environment:
>
>
> Request Method: GET
> Request URL: http://23.239.206.142:8000/
>
> Django Version: 1.6.4
> Python Version: 2.7.3
> Installed Applications:
> ('django.contrib.admin',
>  'django.contrib.auth',
>  'django.contrib.contenttypes',
>  'django.contrib.sessions',
>  'django.contrib.messages',
>  'django.contrib.staticfiles',
>  'vmware')
> Installed Middleware:
> ('django.contrib.sessions.middleware.SessionMiddleware',
>  'django.middleware.common.CommonMiddleware',
>  'django.middleware.csrf.CsrfViewMiddleware',
>  'django.contrib.auth.middleware.AuthenticationMiddleware',
>  'django.contrib.messages.middleware.MessageMiddleware',
>  'django.middleware.clickjacking.XFrameOptionsMiddleware')
>
>
> Traceback:
> File
"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in
get_response
>   101. resolver_match =
resolver.resolve(request.path_info)
> File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
in resolve
>   337. for pattern in self.url_patterns:
> File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
in url_patterns
>   365. patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
> File "/usr/local/lib/python2.7/dist-packages/django/core/urlresolvers.py"
in urlconf_module
>   360. self._urlconf_module = import_module(self.urlconf_name)
> File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py"
in import_module
>   40. __import__(name)
> File "/root/djangoprojects/provisioning/provisioning/urls.py" in 
>   7. url(r'^customers/', include('vmware.urls')),
> File
"/usr/local/lib/python2.7/dist-packages/django/conf/urls/__init__.py" in
include
>   26. urlconf_module = import_module(urlconf_module)
> File "/usr/local/lib/python2.7/dist-packages/django/utils/importlib.py"
in import_module
>   40. __import__(name)
> File "/root/djangoprojects/provisioning/vmware/urls.py" in 
>   5. from vmware import views
>
> Exception Type: SyntaxError at /
> Exception Value: invalid syntax (views.py, line 19)
>
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/d9c8f4e7-1636-45d4-9877-2b01bdaf357b%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4VNuQwe5XoawwGWToemyx_or4WdiACOZzsZ4wOK-KvqA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Newbie question - data structure for game

2016-10-29 Thread Bob Gailer
On Oct 28, 2016 7:59 PM, "Ken Albright"  wrote:
>
> I'm just learning Python and Django so please be gentle...
>
> I've written a quote decryption game (like you see in the newspaper) in
Python. I'd like to put it on a web page with Django. However, I'm not sure
of the best way to structure the data. The original quote and the encrypted
quote need to have a one-to-one relationship at the letter level. So it
could be two strings on the same row (same id)

That is the simplest, and I see no need for anything more complex.

or a set of tuples, a dictionary, or ???
>
> How to set up the database

What do you mean?

and models.py?

class Quote:
plain= Models.CharField()
crypt = Models.CharField()

> 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.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/b37833bf-e474-4b15-844d-4ef8d8e854b6%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO7uhPGRD8MdDaZxPM9ZWpViMMoFdy0_dBfb5ahuZiEB4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Need help with a hostel management system project using django

2016-10-30 Thread Bob Gailer
On Oct 30, 2016 9:53 AM, "YOGITHA A N"  wrote:
>
> I am beginner in django please help me out with my project
To help us help you be more specific. What kind of help do you need?
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/35fed150-9a4e-4ba9-a81b-1a5301119f7f%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO5GPt155WmMB8NUO7fbwz7%3DP%2Brq0NaEbLJsQ7UXeUjqtA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


External access

2016-11-07 Thread bob gailer
I am running a the django server, listening at port 8000. I can access 
the server using localhost. When I try using my external ip address I 
get "The server at 24.211.133.163 is taking too long to respond." I have 
port 8000 forwarded to my server computer in my router. What more do I 
need to do?



--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/0fb3e7f8-0c7c-4976-4f8d-a8e914b0b3cb%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: External access

2016-11-07 Thread bob gailer

On 11/7/2016 8:50 AM, Larry Martell wrote:

On Mon, Nov 7, 2016 at 8:48 AM, bob gailer  wrote:

I am running a the django server, listening at port 8000. I can access the
server using localhost. When I try using my external ip address I get "The
server at 24.211.133.163 is taking too long to respond." I have port 8000
forwarded to my server computer in my router. What more do I need to do?

Is the port open on the firewall?

How would I determine that?

What OS are you on?

Windows 10.

Bob

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/d4b6210e-2fe5-edcd-79fe-1e1731cd1971%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: External access

2016-11-07 Thread bob gailer

On 11/7/2016 8:51 AM, GMail wrote:

Hi! Seems like port forwarding doesn't work correctly. Do you have any other 
ports forwarded (like ssh or ftp)? If so, do they work as expected?

What is this command's output:
telnet  8000

Sorry but I'm running Windows 10 which does not recognize "telnet"

Bob

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/41e7d76b-3938-43c3-d61a-21e94ecbd067%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: External access

2016-11-07 Thread bob gailer

On 11/7/2016 8:58 AM, Andreas Kuhne wrote:

Do you have "ALLOWED_HOSTS" correclty configured in django settings?

Thanks - was not aware of that. Now it looks like:
ALLOWED_HOSTS = ['209.216.2.211', '209.216.15.70', '24.211.133.163']
The last one is my external ip

Adding the ip addresses did not fix the problem.


Regards,

Andréas

2016-11-07 14:48 GMT+01:00 bob gailer <mailto:bgai...@gmail.com>>:


I am running a the django server, listening at port 8000. I can
access the server using localhost. When I try using my external ip
address I get "The server at 24.211.133.163 is taking too long to
respond." I have port 8000 forwarded to my server computer in my
router. What more do I need to do?


-- 
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%2bunsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com
<mailto:django-users@googlegroups.com>.
Visit this group at https://groups.google.com/group/django-users
<https://groups.google.com/group/django-users>.
To view this discussion on the web visit

https://groups.google.com/d/msgid/django-users/0fb3e7f8-0c7c-4976-4f8d-a8e914b0b3cb%40gmail.com

<https://groups.google.com/d/msgid/django-users/0fb3e7f8-0c7c-4976-4f8d-a8e914b0b3cb%40gmail.com>.
For more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.


--
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+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto:django-users@googlegroups.com>.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CALXYUbmDO8hxr%2B1tFbUqtwkaQ9eECkPy%2BtT2M1%2Bj3%3DUj1-oJHA%40mail.gmail.com 
<https://groups.google.com/d/msgid/django-users/CALXYUbmDO8hxr%2B1tFbUqtwkaQ9eECkPy%2BtT2M1%2Bj3%3DUj1-oJHA%40mail.gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Image and video hosting by TinyPic

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/1e8c42da-150a-12d0-2a67-9c352970392a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: External access

2016-11-07 Thread bob gailer

On 11/7/2016 1:23 PM, GMail wrote:
Wow... Indeed, in Windows telnet is disabled by default. Here's how 
you can enable it (first link on Google): 
https://www.rootusers.com/how-to-enable-the-telnet-client-in-windows-10/

C:\Users\bgailer>telnet 24.211.133.163
Connecting To 24.211.133.163...Could not open connection to the host, on 
port 23: Connect failed.


C:\Users\bgailer>ftp 24.211.133.163
> ftp: connect :Connection timed out
I believe the problem is (how somebody already mentioned earlier) your 
port is inaccessible from external network or server is only serving 
on lo (loopback interface, also was mentioned earlier). You could 
easily test both cases with telnet.

How would I do that?
And I forgot to mention, that you should probably run telnet on 
separate machine (not the one serving Django), since you have no 
problem accessing your server locally.

I have no machines that are not on my lan.


On 7 Nov 2016, at 21:19, bob gailer <mailto:bgai...@gmail.com>> wrote:


On 11/7/2016 8:51 AM, GMail wrote:
Hi! Seems like port forwarding doesn't work correctly. Do you have 
any other ports forwarded (like ssh or ftp)? If so, do they work as 
expected?


What is this command's output:
telnet  8000

Sorry but I'm running Windows 10 which does not recognize "telnet"

Bob

--
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+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto:django-users@googlegroups.com>.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/41e7d76b-3938-43c3-d61a-21e94ecbd067%40gmail.com.

For more options, visit https://groups.google.com/d/optout.


--
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+unsubscr...@googlegroups.com>.
To post to this group, send email to django-users@googlegroups.com 
<mailto:django-users@googlegroups.com>.

Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5F9B0BC5-2D58-46A9-B304-AFA2FF777419%40gmail.com 
<https://groups.google.com/d/msgid/django-users/5F9B0BC5-2D58-46A9-B304-AFA2FF777419%40gmail.com?utm_medium=email&utm_source=footer>.

For more options, visit https://groups.google.com/d/optout.



--
Image and video hosting by TinyPic

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4a92ce05-eee8-038c-b1ef-6dd15e699087%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: External access

2016-11-09 Thread bob gailer

Here is an update on my situation.

Windows firewall - I setup in and outbound rules for port 8000 (UDP and TCP)
Router - I set up port forwarding for port 8000 (UDP and TCP)
Using example code in the socket module documentation I ram 
socket_client and socket_server on my local machine with the port=8000  
and host=my external IP . It worked just fine.
When I run the django server instead of the socket server and attempt 
browser access thru my external IP I get a timeout.

Nothing appears on the console running the server.

So something is different . Any ideas?

I presume that the browser - django server communication at most uses 
TCP and/or UDP.


Any ideas are welcome.

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/f102f6e2-ca8c-f6b2-43a4-51b1439d5ae5%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Basic configuration for running under Apache

2016-11-14 Thread bob gailer

https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/modwsgi/

This page offers:

WSGIScriptAlias  //path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath  /path/to/mysite.com



In my setup this becomes c:\Users\myname\mysite\mysite\wsgi.py

I am puzzled by the .com in the example. Can you explain?

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c9f26e89-87f9-5ba8-d708-6ceb236a8e5e%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


how to run django under apache on windows 10

2016-11-18 Thread bob gailer
Goal: run django under apache on windows 10. I have tried many things, 
none of which have worked. Errror messages up to wazoo. Google has not 
been my friend: I found a lot of articles Everything I read is either 
oriented to linux and/or assumes knowledge I don't have.


Example: today I discovered 
https://docs.djangoproject.com/en/1.10/topics/install/. There is a 
section titled  "Install Apache and mod_wsgi". Unfortunately it does not 
tell us how to install either!


Do you know the best, proper, user-friendly, successful way to get 
django running under apache on windows 10?


--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/833d8b08-84a4-8687-2f38-0b8a4914bd78%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


What is meaning of '[::1]'?

2016-11-20 Thread bob gailer
From 

https://docs.djangoproject.com/en/1.10/ref/settings/#std:setting-ALLOWED_HOSTS:

"When DEBUG  is |True| and |ALLOWED_HOSTS| is empty, the host is 
validated against |['localhost', '127.0.0.1', '[::1]']|."


What is meaning of '[::1]'?

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/02858789-fa42-f8fe-817f-94360b3ddd7d%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


question re built-in server

2016-11-25 Thread bob gailer

Sometimes requests get displayed at the console, other times they do not.

Example:

(myproject) C:\Users\bgailer\mysite>manage.py runserver 0.0.0.0:8000
Performing system checks...

System check identified no issues (0 silenced).

You have 1 unapplied migration(s). Your project may not work properly 
until you apply the migrations for app(s): auth.

Run 'python manage.py migrate' to apply them.
November 25, 2016 - 16:44:45
Django version 1.10.3, using settings 'mysite.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CTRL-BREAK.
Performing system checks...

System check identified no issues (0 silenced).

You have 1 unapplied migration(s). Your project may not work properly 
until you apply the migrations for app(s): auth.

Run 'python manage.py migrate' to apply them.
November 25, 2016 - 16:46:45
Django version 1.10.3, using settings 'mysite.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CTRL-BREAK.
test[25/Nov/2016 16:46:50] "GET /vapi/ HTTP/1.1" 200 38

The first time server is started requests don't get displayed. I edit a 
file to force a restart, and then requests get displayed.In each case 
the view is executed, based on the browser display. Any ideas as to why 
the inconsistent behavior?


--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4e8d5514-1984-1dbf-3b11-208381d3c43f%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


where does logging configuration go?

2016-11-25 Thread bob gailer

https://docs.djangoproject.com/en/1.9/topics/logging/

shows some logging configurations, but does not tell me where to put them.

Where would you suggest?

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/01889686-1fba-7d2c-6dec-1965d3156622%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: where does logging configuration go?

2016-11-26 Thread bob gailer

On 11/26/2016 9:02 AM, ludovic coues wrote:

the settings.py file of your project
Thank you. Is that documented anywhere? I followed various links; none 
of which pointed me to that.




2016-11-25 23:15 GMT+01:00 bob gailer :

https://docs.djangoproject.com/en/1.9/topics/logging/

shows some logging configurations, but does not tell me where to put them.

Where would you suggest?

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/01889686-1fba-7d2c-6dec-1965d3156622%40gmail.com.
For more options, visit https://groups.google.com/d/optout.






--
Image and video hosting by TinyPic

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/4f753b10-c82d-b068-4567-d37414cc9242%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: beginner

2019-02-01 Thread Bob Gailer
I would be glad to give mentoring a shot. Send me your questions. If we
enjoy working with each other then we'd need to negotiate some kind of
payment for my services.

Bob Gailer

On Jan 31, 2019 4:36 PM, "Emmanuel klutse"  wrote:

> I want to be one of the best in the field (python n Django), so I will be
> happy if you can help as my mentor .
>
> I’m currently stack on dictionary for the best two day.
>
> On Thu, 31 Jan 2019 at 9:09 PM, Tim Vogt (Tim Vogt) 
> wrote:
>
>> Wat do you want to accomplish?
>>
>> Tim
>> t...@officerebels.nl
>>
>> Op 31 jan. 2019, om 21:51 heeft Emmanuel klutse  het
>> volgende geschreven:
>>
>> I'm Emmnuel klutse, and very new to programming.
>> CAN I GET SOMEONE TO MENTOR ME PLEASE.
>> i'm currently taking a python course on udemy and also learning on django
>> via youtube.
>> I NEED A MENTOR PLEASE
>>
>> --
>> 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 to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/63ac66bb-ea6e-402d-aa91-2eb82abaf4d2%
>> 40googlegroups.com
>> <https://groups.google.com/d/msgid/django-users/63ac66bb-ea6e-402d-aa91-2eb82abaf4d2%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> 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 to django-users@googlegroups.com.
>> Visit this group at https://groups.google.com/group/django-users.
>> To view this discussion on the web visit https://groups.google.com/d/
>> msgid/django-users/31162D20-A423-4EE3-869D-5156F4561910%40gmail.com
>> <https://groups.google.com/d/msgid/django-users/31162D20-A423-4EE3-869D-5156F4561910%40gmail.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAAw18mCHakG7vEAfQMgkRJv%2B_FfZpHT-CC80TWVqkez1TXJKzQ%
> 40mail.gmail.com
> <https://groups.google.com/d/msgid/django-users/CAAw18mCHakG7vEAfQMgkRJv%2B_FfZpHT-CC80TWVqkez1TXJKzQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO7z4gJDkOc8hn2gphvSTWJhyEaRrsvZTudp4kd-Y%3Dr81A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: looking for team members as my technical Advisory

2019-02-22 Thread Bob Gailer
Sounds interesting. Tell me more.

On Feb 22, 2019 5:02 AM, "Nura Bash"  wrote:

> Good day, all am Nura bashir CEO of Teamlead enterprise Nigeria, am
> looking for Technical advisory members for my project which am about to
> start here in West Africa, is a plot project from 10 selected schools to
> help train  kids django..
>
> If any one is interested I can be reach out via whatpp +23434832618 or my
> email nurabas...@gmail.com
> Thank you
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/4298c126-9392-4691-a40b-51420ebbaea1%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO507W5E5QqQeoEue%3DcgfZ%3Dsgji7evwhs%2BLi%3Dag%3DP3-Mrg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Problems with first program

2019-02-28 Thread bob gailer

On 2/28/2019 6:08 PM, Edvani Pascoal wrote:
hey guys I'm beginner on django I never worked with this framework 
before and then I've problems to started polls app this is the error:



deleting most of the traceback since in this case it is not relevant.

  File "/home/edvani/django-test/djangoproject/polls/models.py", line 5
    question_text = models.CharField(max_length=200)
    ^
IndentationError: expected an indented block


Here is the head of models.py, as copied from the tutorial

from django.db import models


class Question(models.Model):
    question_text = models.CharField(max_length=200)

Your copy of that file is different. Statement that end in : must be 
followed by at least one indented line. These are known as "compound 
statements" (if, elif, else, while, for, try, except, finally, with).


--
Bob Gailer


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/580f4cd8-1d87-56a0-7548-c20e26e3e446%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: ML-Python

2019-03-13 Thread Bob Gailer
On Mar 13, 2019 7:44 AM, "Hafit Omar"  wrote:
>
> Hi Everyone I'm Hafit from Libya,
> Can anyone help me in in sklearn library I want to import
cross_validation it doesn't work

Please be more specific. What is the evidence that it doesn't work?

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO7yws2wsRK6Zs32XCe9SU-j-zgFLNogX_jZWb3W_QCkFg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: TypeError

2019-05-22 Thread Bob Gailer
On May 22, 2019 6:09 AM, "Soumen Khatua"  wrote:
>
> Hi Folks,
>
> I'm getting this error "TypeError:" everytime, Can You guys tell me where
is the problem in this code.

it would help us a lot if you would copy the entire traceback and paste it
into an email reply.

> Cart
>
> views.py
> @require_POST
> def cart_add(request,product_id):
> cart = Cart(request)
> product = get_object_or_404(Product,id  = product_id)
> form = forms.CartAddProductForm(request.POST)
> if form.is_valid():
> cd  = form.cleaned_data
> cart.add(
>product = product,
>quantity = cd['quantity'],
>update_quantity = cd['update'])
> return redirect('cart:cart_detail')
>
>
> def cart_detail(request):
> cart = Cart(request)
> return render (request,'cart/cartdetail.html',{'cart':cart})
>
>
>
> cartdetail.html:
> {% for item in cart %}
> {{ item.quantity }}
> {% endfor %}
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAPUw6WYVTQWq-5WtiMo6HekSmaw6%2BRCxfRu4wbFF9BgYaDsPqg%40mail.gmail.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO6ck3Mg1w6Rz_TjZq51G06brVK08zHa4_XtehA%2BKn78Kg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Working with Databases

2019-05-26 Thread Bob Gailer
Miscellaneous thoughts follow in no particular order.

I always like to start with some kind of entity relationship (ER) diagram.
This makes it easy to visualize the overall structure of things.

Read the description in the Django Docs of JSONfields. They don't really do
what you want.

I think what you want instead is what I call  an association table.

Your problem description is somewhat scattered and hard to follow. A good
ER diagram will help clean that up.

I suggest you start with a subset of your problem, one that can be easily
diagrammed and programmed. Once you get that working then consider adding
another piece of the puzzle.

Regarding data entry forms: consider drawing a diagram or what sometimes we
call wireframe description of the form.

In several places you refer to weighting but you never describe the actual
algorithm for weighting.

Since I'm dictating this to my mobile phone it's hard to refer back to your
original email. So I will end here and perhaps write more later.

Thank you for starting this discussion. Please let me know your thoughts
regarding my comments.

Bob gailer

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO57oH%2BzC%3D1mfQQiaLn%3Dw46TLetVD4iqSGSGe-wRethfRA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: AutoField

2019-05-26 Thread Bob Gailer
On May 26, 2019 8:16 PM, "Saeed Pooladzadeh"  wrote:
>
>
> Hi
>
> When I add this line in my model:
>
> eid=models.AutoField()
>
> I see error in my migration!!
>
> What is the problem?
>
> I don't know what your problem is but our problem is that we have no idea
what error you got. Please copy and paste the entire error message into
your reply and also reply all so that everyone gets to read your response
stop

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO7ROcWYL9LYO4XMt8_gHmgd74gMJ%3D0yo2pjdegkNekZfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re:

2019-06-25 Thread Bob Gailer
Oh goodie. When will they be delivered?

On Jun 25, 2019 2:53 AM, "Benjamin SOULAS" 
wrote:

> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CABG7fFXkw1G7ZG6XrJYjuEGuZFS0WpX%2BVxSdS3i2JXu9m9Upag%
> 40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO70z0TnsXPQgTkKFLMP7MxPb6D%2BuxbwE3sYm%2Bh8KfUN%2Bw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Does anyone in this group hire out to update code .

2017-04-12 Thread Bob Gailer
I'd be glad to take a look at the Django code. That way I could tell if I
have the expertise to help you , and yes, I am available for hire.

If you would give me access in some form to the Django modules and your
requirements I will let you know what I can do, and my cost estimate.

On Apr 11, 2017 8:26 PM,  wrote:

>  I am looking for a django programmer
> I have a site that was written in python django code and I am not
> proficient enough to make page correction. HELP!!!
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/58de7b2a-bcc8-40d7-a26a-42b0d0491bc9%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4zN4DhML8HsN3KBDR8rRXRLLujcgf%2Bg-SPbmfgmqn56A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: count the selected chechboxes in multipleselectfield

2017-07-05 Thread Bob Gailer
On Jul 5, 2017 6:55 AM, "elloy"  wrote:
>
> I need your help with a problem I'm trying to solve
> I'm making a questionnaire and I have to count the selected choices that
the user have checked in a certain question with 5 possible answers(choices)
> The model I'm using is:
>
> class Reuse(models.Model):
> REUSE_OPTIONS = (
> ('1', 'first choice'),
> ('2', 'second choice'),
> ('3', 'third choice'),
> ('4', 'fourth choice'),
> ('5', 'none of the above'),
> )
>
> user = models.ForeignKey(settings.AUTH_USER_MODEL, null=True,
blank=True)
> reuse = MultiSelectField(max_length=250, choices= REUSE_OPTIONS,
max_choices=4, null=True)
> m = models.DecimalField(max_digits=5, decimal_places=3, default=0)
> numchoices = models.IntegerField()
I am not an expert in Django, but I will point out some problems. You just
made an assignment to numchoices, then you redefine numchoices in the next
line.
> def numchoices(self):   (I tried
this but it didn't work)
Telling us it didn't work is not helpful. You need to be much more
explicit. What led you to say this didn't work?
> self.choices_count = self.choice_set.count()
What are choices_count any choice_set?
> self.save()
>
> I wrote this view:
> def reuse (request):
> if request.method == "POST":
> form = ReuseForm(request.POST)
> if form.is_valid():
> reuse = form.save(commit=False)
># if reuse.get_choices.count() == 1 : reuse.m=0.075
(this doesn't work either)
>   #  elif reuse.get_choices.count() == 2 : reuse.m=0.15
># elif reuse.get_choices.count() == 3 : reuse.m=0.225
>  #   elif reuse.get_choices.count() == 4 : reuse.m=0.3
Rather than calling the method so many times it's better to call it once
and assign the result to a variable. Also in this case you can compute m
from the count
> reuse.save()
> return redirect('../22')
> else:
> form = ReuseForm()
> return render(request, 'questionnaire/reuse.html', {'form':form})
>
> And the form I'm using is:
>
> class ReuseForm(forms.ModelForm):
>
> class Meta:
> model = Reuse
> fields = ('reuse',)
>
> Please, have you got any suggestions;
By the way I don't know what the effect is of defining a function in a
model. Someone else will have to deal with that. I suggest you fix problems
I've pointed out run the program tell us exactly what goes wrong and where
>
>
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/ca1f528d-903a-428f-b781-6506dff69e0f%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4koSXY--T3eCjmTMtNrHDLkxsoXYS-3hCm-znovwAeWg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Html Page rendered when i hit this below url instead of json objects

2017-09-29 Thread Bob Gailer
On Sep 28, 2017 7:31 AM, "Rakhee Menon"  wrote:
>
> Hi Everyone,
>
> When i hit the url  localhost:8000/forms it gives a html page and on the
other hand when i do it through the django admin ie
>
> localhost:8000/admin/forms it gives me the result...What can be the
reason??Can anyone help??

Check your URLs. Py files.

You will probably find they are directing traffic to two different places.

>
> Thank You.
>
> Regards,
> Rakhee Menon
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/a74fd16b-8e82-4f08-9791-dd967367c8bd%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4qMtZ%2BaOw4X2RREC3-crk0UEyqWJ_kZVMhA8LF-Tz1Jg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: I want to make todo List

2015-09-26 Thread Bob Gailer
That's a noble objective. To help us help you please be more specific and
detailed. I assume since you are communicating with the Django list that
you want a web app that will give the user a place where he can enter
edit/delete etc search for to do activities and a place on the cloud to
store the data. Please tell us why you want to do this as opposed to using
something that someone else has already built. Also realize that we prefer
to work with those who have made an effort to create something and who tell
us what you've done so far where you're stuck. Please take this as
encouragement to go ahead, be specific and detailed when you ask us
questions. Good luck.
On Sep 26, 2015 6:46 AM, "Ram Lakhan Agarwal" 
wrote:

> I want step by step procedure to make todolist
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/95b6d182-44c6-45a0-91bb-99cfd92e7b1d%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4zJJRZGH45%3D3EsN6fkZpeHttoyZeTdcPAGLkv%3DwyTOoQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


How to install on windows?

2016-02-14 Thread bob gailer
I tried following the instructions at 
https://docs.djangoproject.com/en/1.9/howto/windows/.


I installed Python in C:\python35. After that most things didn't seems 
to work as promised.


Python 3.5 does not appear in the PATH. (Python 3.3 is there.) Yes I 
checked |Add Python 3.5 to PATH.


C:\>python --version
Python 3.3.3

I typed (at the C: prompt) pip install virtualenvwrapper-win

'pip' is not recognized as an internal or external command,
operable program or batch file.

After searching I found pip in C:\python35/scripts

So I changed to that directory and typed
||C:\python35/scripts>||pip install virtualenvwrapper-win

That worked.|

|Then I tried |mkvirtualenv myproject and got
'virtualenv.exe' is not recognized as an internal or external command,
operable program or batch file.

A few years ago I tried to install Django. I recall running into similar 
issues.


I must be missing something. Any guidance 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 group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56C12079.50203%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to install on windows?

2016-02-16 Thread bob gailer

On 2/14/2016 8:08 PM, Mike Dewhirst wrote:

1. Uninstall all versions of Python on your machine

2. Start again and install Python 3.5 (pip was first part of the 
Python install with 3.4)
That seemed a bit radical and time consuming. I examined the PATH 
environment variable, replaced  python33 with python35 and now I am 
making good progress. Thanks for the nudge.


3. Continue with https://docs.djangoproject.com/en/1.9/howto/windows/

Good luck and welcome!

On 15/02/2016 11:48 AM, bob gailer wrote:

I tried following the instructions at
https://docs.djangoproject.com/en/1.9/howto/windows/.

I installed Python in C:\python35. After that most things didn't seems
to work as promised.

Python 3.5 does not appear in the PATH. (Python 3.3 is there.) Yes I
checked |Add Python 3.5 to PATH.

C:\>python --version
Python 3.3.3

I typed (at the C: prompt) pip install virtualenvwrapper-win

'pip' is not recognized as an internal or external command,
operable program or batch file.

After searching I found pip in C:\python35/scripts

So I changed to that directory and typed
||C:\python35/scripts>||pip install virtualenvwrapper-win

That worked.|

|Then I tried |mkvirtualenv myproject and got
'virtualenv.exe' is not recognized as an internal or external command,
operable program or batch file.

A few years ago I tried to install Django. I recall running into similar
issues.

I must be missing something. Any guidance would be appreciated.






--
Image and video hosting by TinyPic

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56C3476A.8090205%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


problem with DJANGO_SETTINGS_MODULE

2016-02-19 Thread bob gailer
After several days of running my server with no problem I am suddenly 
confronted with:


"django.core.exceptions.ImproperlyConfigured: Requested setting 
DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must 
either define the environment variable DJANGO_SETTINGS_MODULE or call 
settings.configure() before accessing settings."


Researching the django docs did not help.

 settings.py is in  .../mysite/mysite as per the tutorial. I am using a 
virtualenv


Question:s why the change? It was working!

There is no DJANGO_SETTINGS_MODULE environment variable

I've tried (following the documentation)
set DJANGO_SETTINGS_MODULE=mysite.setting

which results in (very long traceback) ending in
ImportError: No module named 'mysite

I am running version 1.9, python 3,5. windows 10.

Please guide me.

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56C75DFF.5060300%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: problem with DJANGO_SETTINGS_MODULE

2016-02-20 Thread bob gailer

On 2/19/2016 1:25 PM, bob gailer wrote:
After several days of running my server with no problem I am suddenly 
confronted with:


"django.core.exceptions.ImproperlyConfigured: Requested setting 
DEFAULT_INDEX_TABLESPACE, but settings are not configured. You must 
either define the environment variable DJANGO_SETTINGS_MODULE or call 
settings.configure() before accessing settings."

Red faced embarrassment - I had inadvertently switched from
python manage.py to django-admin runserver

Bob Gailer

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56C8CE37.8040305%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


no module named ...

2016-02-21 Thread bob gailer
Following the tutorial I created projectmysite  and the polls app. 
Everything is fine.


I then started another app, tma, ran server and everything is fine.
Then I added url(r'^ tma/', include(' tma.urls')),to mysite/urls.py
 Now when I runserver I get:
Unhandled exception in thread started by check_errors..wrapper at 0x022B1D8EA840>

Traceback (most recent call last):
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\utils\autoreload.py", 
line 226, in wrapper

fn(*args, **kwargs)
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\core\management\commands\runserver.py", 
line 116, in inner_run

self.check(display_num_errors=True)
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\core\management\base.py", 
line 426, in check

include_deployment_checks=include_deployment_checks,
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\core\checks\registry.py", 
line 75, in run_checks

new_errors = check(app_configs=app_configs)
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\core\checks\urls.py", 
line 10, in check_url_config

return check_resolver(resolver)
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\core\checks\urls.py", 
line 19, in check_resolver

for pattern in resolver.url_patterns:
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\utils\functional.py", 
line 33, in __get__

res = instance.__dict__[self.name] = self.func(instance)
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\core\urlresolvers.py", 
line 417, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", 
self.urlconf_module)
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\utils\functional.py", 
line 33, in __get__

res = instance.__dict__[self.name] = self.func(instance)
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\core\urlresolvers.py", 
line 410, in urlconf_module

return import_module(self.urlconf_name)
  File "C:\Users\bgailer\Envs\myproject\lib\importlib\__init__.py", 
line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 958, in 
_find_and_load_unlocked

  File "", line 673, in _load_unlocked
  File "", line 662, in exec_module
  File "", line 222, in 
_call_with_frames_removed

  File "C:\Users\bgailer\mysite\mysite\urls.py", line 22, in 
url(r'^ tma/', include(' tma.urls')),
  File 
"C:\Users\bgailer\Envs\myproject\lib\site-packages\django\conf\urls\__init__.py", 
line 52, in include

urlconf_module = import_module(urlconf_module)
  File "C:\Users\bgailer\Envs\myproject\lib\importlib\__init__.py", 
line 126, in import_module

return _bootstrap._gcd_import(name[level:], package, level)
  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 944, in 
_find_and_load_unlocked
  File "", line 222, in 
_call_with_frames_removed

  File "", line 986, in _gcd_import
  File "", line 969, in _find_and_load
  File "", line 956, in 
_find_and_load_unlocked

ImportError: No module named ' tma'
You will note
File "C:\Users\bgailer\mysite\mysite\urls.py", line 22, in 
url(r'^ tma/', include(' tma.urls')),
in the traceback.

How do I fix this?

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/56CA599C.7000905%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Home Page

2016-02-23 Thread Bob Gailer
On Feb 23, 2016 7:59 AM, "Malik Rumi"  wrote:
>
> Why is there so little information in the docs

Documentation evolves. User input helps that process. Perhaps you can make
a contribution as you learn.

about how to build a home page

I'm not sure what you're looking for here. Designing a home page is not a
django topic. Using django to deliver a homepage is the same as delivering
any other page

where to put the url

I don't understand  what you mean by that. please explain

whether or not to build a separate app around it, or why not to put it in
the folder with settings in it,

If your home page is a portal to several apps then it seems to me you would
have an app for the home page

And how to handle a complex home page with a lot of changing content - like
on a newspaper, where Django was created?

Seems to me that's not a django issue.
>
> And second, where (other than trial and error) do I find that kind of
documentation / support?

Google CMS?

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4_xrKa%2BtdZ4VoHVbwxuvj628D%3DgURg%3DqFP-8R8c9umTQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Integrate appliction into Django

2016-02-28 Thread Bob Gailer
On Feb 28, 2016 7:50 AM, "Alain Muls"  wrote:
>
> Hi All,
>
> I made a program that creates 4 plots and text files about the location
of GNSS (Global Navigation Satellite Systems) based on TLEs downloaded from
NORAD.
> You can find it at https://github.com/alainmuls/GNSSTracking
>
> I would like  to use this program in django (I started with edge-django
as my template). But I don't know how to start with it. How would I define
a model/view for displaying the plots and text files and how can I allow
users to download these results?
Start with the Django tutorial?

>
> Thanks for your help
> Alain
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/ed296d1a-1fcb-4d1f-9592-0e7bec2a4d3a%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4Dh6hdk4R2vowa9KP3BO6oFohNZeoz89TY1LwwVT%2BnCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django OVH

2016-03-04 Thread Bob Gailer
On Mar 4, 2016 5:09 PM, "Cedric Vallee"  wrote:
>
> To whom it may concern,
>
> I followed my friends' advice and coded a website in Django, but now it
seems virtually impossible to find documentation about how to host a Django
website on 'classic' hosting servers like OVH.
According to the OVH website you can host anything you want including
python so I would presume one would start out installing Python then
installing Django and going from there .
> Could you please tell me what I have to do so that my website appears
when I type the URL, and not just a page with the folders I uploaded via
Filezilla?
> sounds like you've already installed Django?
Have you considered Python Anywhere? I have I've run django there with no
problem.
> I thank you for your help.
>
> Best regards
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/41bba2fa-f0fd-4480-9fb3-2774d988579f%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4VoaeeZnZxePtEkO2yZ038N0L5GESUTvMVui-LhAAnxw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Single Page Application in Django

2016-03-07 Thread Bob Gailer
On Mar 7, 2016 7:04 AM, "Avraham Serour"  wrote:
>
>  DRF
I'll bite - what is DRF? Google does not help with that.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO7AxoUPEpw85at7dRmAuRWL8FTZAok9-dkO24%3Dh2M7KdA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Python on the web

2016-03-07 Thread Bob Gailer
On Mar 7, 2016 10:51 AM, "Gregg Turner"  wrote:
>
> Hey,
>
> Need a simple python script put into a website. It uses the requests
module.
>
> $20? Any takers?

Strictly speaking this isn't the place to buy services. Also we would need
a lot more information. Can you guess what that information would be?
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/d178af7a-2b90-496e-9a0d-7605cfdaa013%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4chd1wGNbJQy4HEJ1pXopXbvmXuxg_9%3DhtNZDsH1xv5g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: execute python through ajax

2016-03-09 Thread Bob Gailer
On Mar 9, 2016 9:22 AM, "Florian Hoedt"  wrote:
>
> Hello Django users,
> I would like to execute some python code by JS. For example if somebody
clicks on a openlayers map it should execute a python based query and get
the result as JSON to render it on the map.
> How would I achieve something like this?
Google Django Ajax. There's a number of good references there.
>
> I am trying to understand the forms section of the official django
tutorial without success.
This sounds like a separate issue. What's your objective and where are you
stuck?

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO6pLs13%3DZ3jRBAOkO0YUoCM2cQJ81mmsWGRDgu5U1pJmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Model or Form class

2016-03-10 Thread Bob Gailer
On Mar 10, 2016 9:01 PM, "Denis Makarov"  wrote:
>
> Hello guys! In whitch cases need to use models.Model class  and in whitch
forms.Form?

Models define tables in a database. Forms assist in creating HTML forms for
gathering, valididating and saving user input. Does that help?

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO5zTA0V-eYG%2Bf-yfu2OqB24dDHX3Dk5hJYHx56z_rdGEg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: DJANGO TUTORIAL

2016-03-22 Thread Bob Gailer
On Mar 21, 2016 7:24 PM, "Anthony W Smith"  wrote:
>
> When I follow django tutorial on the django site for the polls app I keep
getting the error after runnig the python manage.py runserver command it
says no modsule named my site.

You could
1) show us your directory structure
2) delete the directories and start over. Especially when you don't have a
lot of effort invested that. Pay attention carefully to each step.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO7_OZX4QTmi%3DeByxtLHVWb6O0ietg%2BAjXRVCYADrnPM4g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django Model design

2016-03-27 Thread Bob Gailer
On Mar 27, 2016 9:41 AM, "Paria Parsamanesh" 
wrote:
>
> Hi ,
> I am new to Django and python and I want to connect to cloudera metadata
database (postgre. )
> I have background in java, and db2, to design java model classes , we
used logical data model and create UML modeling tools. .
>
> Can you direct me on
> 1) How to make this connect from Django on windows to Cloudera postgre.
I am not an expert. My guess is you will accomplish this via settings.py.
> 2) How to design model classes.
Start with the Django tutorial. This will give you the basics. Then look at
the models section of the documentation. Start to build a model.py, then
come back with questions.

Just my opinion. Others may have other ideas.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO7_f2Yj0uasxutn86qZG36bO-c4coA5-3KEgxF%3DN-Qxqg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Multiple values to Django

2016-04-03 Thread bob gailer

On 4/2/2016 6:20 PM, Denis Makarov wrote:

Hello! I have a MyForm which have name, quantity and quandesc fields.

I have a basic UI form for adding this fileld.

I added button for adding another instances of field on web page. 
Jquery func below:


|
functionaddContainer(){
$("#name").clone().appendTo("#food-container");
$("#quantity").clone().appendTo("#food-container");
$("#quandesc").clone().appendTo("#food-container");
}
|

This gives you duplicate IDs. IDs in HTML should be unique. It appears 
that the 1st occurrence of an ID is ignored, since you are getting the 
value of the 2nd.


To solve this you must generate a new (unique) ID each time you clone a 
field. I suggest you maintain a counter that is incremented by 1 each 
time you run addContainer. Append this counter to the original ID.


Something like (I don't know the precise syntax)
|ctr = ctr + 1;
field = $("#name").clone();
field['id']="name"+ctr; ?? not sure if this is the way to set the ID
field.appendTo("#food-container");
ditto for the other 2 fields.

While you are at it how about making an array of the 3 original fields, 
then applying the code to each element of that array.



Bob Gailer|

--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5701AB4A.7060303%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Django on Codenmvy

2016-04-09 Thread bob gailer
I am new to Codenvy. Do you have any experience with Codenvy / Django? I 
could use some help. I will post questions if I hear from an experienced 
user.


--
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5709D034.9060207%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: a question about redis cache

2016-04-10 Thread Bob Gailer
Why not just use Redit?

On Apr 10, 2016 8:38 AM, "Xin Liu"  wrote:
>
> Let's look at the following scenario:
> A website has 1 player, to make question easier, I use mysql  storage
player with just one table: "player_table"
> --table here-
> name string
> score int
>
> now, I want to show Top 100 of those players  by socre.
> if only with mysql, I have to caculate Top 100 every time, so I choice
Redis to storage Top 100 with sorted set data type.
>
> But if one of those players' score chaning, what should I do, update Top
100 every time??
>
> Thanks for you advance
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/487b5298-d478-448a-b498-f9def7ec74f3%40googlegroups.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO7p%3Dd74hcLAAZTtZOfMjB-m7X_E9M5qv4QjxHyic0CgJw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Django object to json

2018-07-07 Thread Bob Gailer
On Jul 7, 2018 7:42 AM, "Kamal Sharma"  wrote:
>
> hi,
>
> I am facing a problem to get data from database in form of JSON.
>
> data = model.objects.all()
>
> now i have a big list in data and want to convert it into JSON.
> how can i do it.

import json
json_biglist = json.dumps(biglist)

Django may offer an alternative.

>
> Thanks
>
> Kamal Sharma
>
> --
> 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 to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/django-users/CAHfh8PQmAZ5EB4ENunxjwdd%3DQcXDH-x8db9e6kP%2BtuY2Zr8vxw%40mail.gmail.com
.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO6CidFamw_L-160U_jkXq9pGDp-ajzHqsXFMQEasBtJkw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Toby McGuire

2018-11-12 Thread Bob Gailer
On Nov 12, 2018 12:05 PM, "toby mac"  wrote:
>
> Im a newbie to this. Used to program on COBOl, Fortran and 370 assembler,
plus many others

Welcome to A Whole New World. How can we help you?

Bob Gailer

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO6i9UpXonLE%2BjT3ohjQGEei5Yj41o5dT%3D82LoQPzp4RWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: New to this list question

2018-11-23 Thread Bob Gailer
On Nov 23, 2018 3:16 PM, "Dean Karres"  wrote:
>
> Hi,
>
> I just joined this list.  I am new to Django.  I have seen several of the
most recent postings.  I have a question i want to ask but am not sure if
this is the correct forum.  The question I want to ask is to get advice on
what Django module(s) I should use to either get me close to a final
application or get me all the way there.

The place to start is the Django tutorials.

I have looked at the list of Django modules but there are lots of them and
trying to compare/contrast while keeping my app goals in mind is proving
difficult.  I am hoping folks with more experience an help me filter things
a bit.  I would offer a 1000 foot view of what I want to accomplish but it
might be longish.  Is that Ok here?

Technically anything Jango related is okay here. Keep in mind the longer
your post the more likely it is to be not fully read. Could you give us a
10,000 foot overview?

Bob Gailer

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO5D1%3Dmpi06_r9rC%2B9of8xocYSkV%3DM0gjEFrnqYFBNgDdw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error

2019-01-02 Thread Bob Gailer
On Jan 2, 2019 2:03 AM, "Suresh"  wrote:
>
> def chapter(request, course_name=None, slug=None):
> place = Chapter.objects.get(course__course_name=course_name,
slug=slug)
>
> add_link_form = AddLinkForm(request.POST or None)
> add_txt_form = AddTxtForm(request.POST or None)
> file_upload_form = FileUploadForm(request.POST or None, request.FILES
or None)
>
> queryset_txt_block = TextBlock.objects.filter(text_block_fk__id=
place.id)
> queryset_yt_link = YTLink.objects.filter(yt_link_fk__id=place.id)
> queryset_files = FileUpload.objects.filter(file_fk__id=place.id)
>
> context = {
> "title": place.chapter_name,
> "course_name": course_name,
> "slug": slug,
> "add_link_form": add_link_form,
> "add_txt_form": add_txt_form,
> "queryset_yt_link": queryset_yt_link,
> "queryset_txt_block": queryset_txt_block,
> "queryset_files": queryset_files,
> "path": "Profile",
> "redirect_path": "profile",
> "file_upload_form": file_upload_form,
> }

What would you like us to do? Personally I won't  / can't do anything with
the code you sent because I don't know what error you got nor do I know the
environment in which you run that code. I sure wish my crystal ball ball
was working.

If I ran that code I would get an error reporting unknown name Chapters.

So give us enough so that we could at least get started. If you got a trace
back please copy and paste the entire traceback.

If you included an attachment it did not come through.

Bob Gailer

-- 
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 to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4mECG4b81R%3DN6xWjzvE6ewC5Y7y4Q6AbZbonT_RzDc7A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: backend for Arduino

2019-11-05 Thread Bob Gailer
Google hotbot Arduino.

On Nov 5, 2019 8:02 AM, "Pranjul Kimothi"  wrote:

> How Can I use Django as backend for an Arduino application .?? Any
> suggestions
>
> --
> 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 view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAH8L0J4U%2BzLcuKVKMcQSaYGwWBYza1KMW5z%
> 3DCfYX%3DV53VnoGbw%40mail.gmail.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO7vbRds%2BKbxXYUvUgh_MceDfSz9CeNkGmxyGF%2BzX0UroQ%40mail.gmail.com.


Re: how to login to Django

2019-11-05 Thread Bob Gailer
Please always provide a subject in your email.

Your question unfortunately is vague could you flesh it out with more
detail?

On Nov 5, 2019 8:00 AM, "Suraj Thapa FC"  wrote:

Send it then

On Tue, 5 Nov 2019, 5:38 pm Paras Jain,  wrote:

> on hitting submit i have to send email and password to user email id which
> will be used for login in django
>
> --
> 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 view this discussion on the web visit https://groups.google.com/d/
> msgid/django-users/CAMtmBS8KETpX74D8nRpPiDdnb_GYSeHYGgc3c_6TVgA15dKa4g%
> 40mail.gmail.com
> 
> .
>
-- 
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 view this discussion on the web visit https://groups.google.com/d/
msgid/django-users/CAPjsHcFZSKeebvqZe7_Eyiz5gJF6dmBv9o-
S6ef5rqLVj5SSjw%40mail.gmail.com

.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO6PDDDkWgOgB0iizq1%2B%3DXH89ZLRCBV29LdPuragxVMrcg%40mail.gmail.com.


Re:

2019-11-20 Thread Bob Gailer
On Nov 20, 2019 10:27 AM, "Paras Jain"  wrote:
>
> how to take pass one object of one function to other in django

I do not understand your question. Perhaps someone else will understand it
and give you the answer you're seeking. If you don't get an answer please
try restating your question or give us an example of what you're trying to
do.

Bob Gailer

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAP1rxO4fZcKofjNFkF9VNkW%3DMPrRD%3DcBfOz8xKq-z2_HcHqhKA%40mail.gmail.com.