Re: My page cound not load image, help!

2012-10-22 Thread Joel Goldstick
Please help~ > Thank you~ > Because your image is not in the directory that your html file shows. Go to the django documentation and try to understand static files. > ____ > Dae James -- Joel Goldstick -- You received this message because you are subscribed

Re: url pattern correct but not working

2013-02-21 Thread Joel Goldstick
scr...@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?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Joel Goldstick http://joelgolds

Re: Django 1.5 & Python 2.7.3 - Not able to view pages

2013-03-19 Thread Joel Goldstick
mail to django-users@googlegroups.com. > Visit this group at http://groups.google.com/group/django-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- Joel Goldstick http://joelgoldstick.com -- You received this message because you are subscribed to th

Re: Python shell displays Segmentation Fault: 11 after upgrade to Mavericks OS

2013-10-25 Thread joel spencer
have a use a lot of libraries such as pymssql, ip-tools, cherrypy, json etc. Thanks for documenting this fix!!! -- Joel. On Friday, October 25, 2013 10:57:25 AM UTC+11, donarb wrote: > > > > On Thursday, October 24, 2013 2:34:13 PM UTC-7, Don Fox wrote: >> >> >>

Re: Python shell displays Segmentation Fault: 11 after upgrade to Mavericks OS

2013-10-25 Thread joel spencer
s/irking/working/ :) On Saturday, October 26, 2013 4:49:37 PM UTC+11, joel spencer wrote: > > i had this same problem after i upgraded my MBA to Mavericks. The > solution contained here works beautifully! > > The other thing that happened is that Mavericks completely wiped out a

Method to restrict user to certain records

2011-04-14 Thread Joel Goldstick
ing I could add a field to the user model, then select the correct form to show for editing based on that field when the user logs in. Am I thinking correctly? If so, how do I add to the user model? -- Joel Goldstick -- You received this message because you are subscribed to the Google Groups

Re: Method to restrict user to certain records

2011-04-14 Thread Joel Goldstick
ow whose data to populate the form with. > -- > Gladys > http://blog.bixly.com > > > On Apr 15, 1:49 am, Joel Goldstick wrote: > > I'm new to Django. I've done the djangoproject tutorial and some others, > > but I haven't come across an answer to my current pr

Re: base.html (extended by others) has to be in project (not app) root?

2011-04-15 Thread Joel Goldstick
ooglegroups.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. > > > > -- > You received this message because y

Re: how to find if a record changed

2011-04-17 Thread Joel Goldstick
he 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

Re: admin login fails

2011-04-19 Thread Joel Goldstick
roups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > Have you checked your caps-lock setting on your keyboard? -- Joel Goldstick -- You received this message because you are subscribed to the Google Groups "Django users

Re: django cms without django admin

2011-01-10 Thread Joel Goldstick
quot;Django users" group. > To post to this group, send email to django-us...@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-use

Re: Need help with Django tutorial

2011-01-16 Thread Joel Goldstick
roups.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. > > So, I looked over at stackoverflow, and in the end you say you fixed y

Re: Expert help needed --LINUX on virtualBox using Windows 7 machine

2011-01-21 Thread Joel Goldstick
go-users?hl=en. > > While I am sure we can all sympathize with confronting a technical problem that we don't understand, this OP has the flavor of trolling perhaps. At any rate this is the wrong list for these pleadings. I don't even see a question -- Joel Goldstick -- You recei

Re: Django - Verfication of runserver vs browser

2011-01-24 Thread Joel Goldstick
t project for the time being and start another with the tutorial. Within about 10 minutes you will get to the point of seeing a screen in your browser that says 'It works!' along with some other instructions. If you get that far, you know that you can create a django project and you kn

Re: Django Admin select boxes

2011-01-31 Thread Joel Goldstick
. > 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. > > I just ran across this article from a delicious feed: Its a little tutorial about

Re: model names

2011-02-06 Thread Joel Goldstick
models.Model): horn_length = models.IntegerField() class Meta: ordering = ["horn_length"] verbose_name_plural = "oxen" -- Joel Goldstick -- You received this message because you are subscribed to the Google Groups "Django users" group. To

Re: Is there any way to get the ip address of the user in the post_save signal?

2011-02-07 Thread Joel Goldstick
.djangoproject.com/en/dev/ref/request-response/#quick-overview -- Joel Goldstick -- 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

Re: Filtering List based on a custom dropdown

2011-02-07 Thread Joel Goldstick
ooglegroups.com. > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > This topic has come up recently under different specifics. When you change your filter (by selecting a specific class) you need to requery with that condition. This can be do

Re: Calling out for Help!

2011-02-09 Thread Joel Goldstick
unt of memory available might also be larger, and that would help. But wouldn't you be better off reviewing the model that creates the report? Have you run that report on the local development server? If you haven't, I'd start there. You could add code to find out where the bottlenecks.

Re: Calling out for Help!

2011-02-09 Thread Joel Goldstick
r more options, visit this group at > http://groups.google.com/group/django-users?hl=en. > > As far as getting errors on the development server, you need to look in settings.py. The values in this file will be different for development than for the production machine. Find the development

Re: conditional fields

2011-02-10 Thread Joel Goldstick
o the server. For this people use AJAX. You need to use the change in a form field to send a message to the server (javascript) which will wait until the server sends back new data which you then use to repopulate your form. -- Joel Goldstick -- You received this message because you are subscribed t

Re: python mysqldb installation problem

2011-02-28 Thread Joel Goldstick
DATABASE_HOST but i don't think > so because when using MySQL DATABASE_HOST may be left blank > > -- > 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.

Re: "DatabaseError: no such table:" in tests

2011-03-07 Thread Joel Goldstick
6/site-packages/django/db/models > /sql/compiler.py", > > line 735, in execute_sql > > cursor.execute(sql, params) > >File > > > "/home/diogo/Envs/danielbaeder/lib/python2.6/site-packages/django/db/backen > ds/sqlite3/base.py", > > line

Re: Posted Screen Text Field Manipulation

2011-03-18 Thread Joel Goldstick
) and show only the first field. When the user leaves the field and if it isn't blank, unhide the second field. Or in clean, if first is blank, copy second to first, third to second, then empty third. -- Joel Goldstick -- You received this message because you are subscribed to the Google Gr

Re: simple friends template help

2011-03-28 Thread Joel Goldstick
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. > > Can you show us the code that produces these v

Re: Trouble changing from sqlite3 to postgres

2015-02-17 Thread Joel Burton
The error is probably in code you wrote that uses the date field. Can you post the full traceback? That will let us see where the caller was that created the problem. On Tuesday, February 17, 2015 at 3:13:30 PM UTC-5, tony@gmail.com wrote: > > I have written a simple Django app (my first) th

Re: Modify Installed_Apps settings

2015-02-18 Thread Joel Goldstick
e class to apply the migration file > override/migrations/0001_initial.py to the test database? > > Thanks, > Andrew > > -- In the book "Two Scoops of Django" there is a section about setting up different settings files. That may help you out http://twoscoopspress.

Re: python / django demand

2015-04-23 Thread Joel Goldstick
my direct market area. >>> >>> >>> >>> any comments appreciated. >>> >>> Thanks. >>> I'm in New York City. I've seen a great rise in python/django job postings here in the past 5 years -- Joel Goldstick http://joelgoldst

urlconf problem

2014-08-05 Thread Joel Goldstick
rked earlier today. I think I have a typo but can't find it. -- Joel Goldstick http://joelgoldstick.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

Re: urlconf problem

2014-08-05 Thread Joel Goldstick
nttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'blog_app', ) I'm thinking its a typo. It actually worked before some unknown small change... > > On 6 August 2014 09:00, Joel Goldstic

Re: urlconf problem

2014-08-05 Thread Joel Goldstick
ints to the wrong settings file. Usually when I'm swapping between > envs "settings.dev" "settings.prod" > > L. > > On 6 August 2014 09:44, Joel Goldstick wrote: >> On Tue, Aug 5, 2014 at 7:15 PM, Lachlan Musicman wrote: >>&

Re: urlconf problem

2014-08-06 Thread Joel Goldstick
had bad code in the view that never ran, so my blog_app stuff worked, but when admin inspects the modules, it apparently couldn't resolve something. I fixed my view code, then admin stuff worked. thanks all. Put into git ;) -- Joel Goldstick http://joelgoldstick.com -- You received this

problem importing blank date using https://github.com/edcrewe/django-csvimport

2014-08-27 Thread Joel Goldstick
discussion on the github page making me think this should work for me, but it doesn't Any ideas? -- Joel Goldstick http://joelgoldstick.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and sto

Can I use a calculated value for a key to a dictionary?

2014-09-18 Thread Joel Goldstick
'], u'NLE': [, , , , , ], u'NLW': [, , , , , ], 'year': u'1975', u'ALW': [, , , , , ], u'ALE': [, , , , , ], 'divisions': [u'E', u'W']} -- Joel Goldstick http://joelgoldstick.com -- You received th

Re: Is there anything similar to phpmyadmin

2014-09-20 Thread Joel Khan
That would be pg admin On Sep 20, 2014 8:38 PM, "Yuan-Liang Tang" wrote: > I'd like to know if there is anything/anyway similar to phpmyadmin for > managing MySQL DBs in a Django project or in the Python environment. Any > suggestions? > > django-mysql-manage seems to be dead. > > https://pypi.py

Paginating 31 forms in to multiple pages( 16 forms per page)

2014-10-20 Thread wangolo joel
I have a lot of form(31) am looking for a way to divide them into multiple pages but current I seem not to find any way of doing this. All the other pagination methods seem to favour those displaying data not those displaying forms. Am using class based view(View) DataInputProcessor(View):

Retrieving other fields along with ValueQueryset

2014-11-02 Thread Joel Goldstick
e highest score. The name is in a table that is linked by a foreign key. My results contain only the year and the Max value. How can I get the name in my queryset but still group by year only? -- Joel Goldstick http://joelgoldstick.com -- You received this message because you are subscribed

Re: Retrieving other fields along with ValueQueryset

2014-11-02 Thread Joel Goldstick
Using v1.6 On Sun, Nov 2, 2014 at 2:18 PM, Joel Goldstick wrote: > I have a model with a year field and a score field, as well as other > fields. I want to get the highest score for each year. I can do that > with this: > > Batting.objects.values('year').ann

Re: Trying out django your first app.

2015-01-01 Thread Joel Goldstick
What steps exactly did you do to get this message? What was the last successful part of the tutorial that you were able to perform? -- Joel Goldstick http://joelgoldstick.com -- You received this message because you are subscribed to the Google Groups "Django users" group. To uns

Default UserCreationForm and UserChangeForm hard-coded to User; is this required?

2015-01-05 Thread Joel Burton
I'm not sure if this is a bug or intended, hence my asking here before adding to the bug database. In django.contrib.auth.forms, the UserCreationForm and UserChangeForm refer several times to the User model directly, rather than using get_user_model(). This means that when using a different mo

Re: Default UserCreationForm and UserChangeForm hard-coded to User; is this required?

2015-01-06 Thread Joel Burton
't actually > modifying the internal Django code. There shouldn't be any need for that, > since pretty much all behavior can be overridden externally. If that is the > case, a question about user creation forms will be the least of your > concerns given the bugs you

Re: Web based IDE for django

2016-08-17 Thread Joel Young
Check out Pycharm by Jetbrains.com (*I have no connection to the company)*. There is a free version that has less functionality. The professional version is about $20/mo for the first year, then the price drops dramatically. If you pay for a year at a time, the prices are: - $ 199.00 /1st ye

Re: SPAM sent via this list?

2019-01-10 Thread Joel Mathew
I've got multiple emails of similiar sort from aphiso...@gmail.com and blocked this account. Didnt find any other option. Sincerely yours, Joel G Mathew On Thu, 10 Jan 2019 at 13:56, Markus Holtermann wrote: > Hi, if the response you got is related to https://bitbounce.com/ , we

Installing pdftotext library on heroku

2019-01-23 Thread Joel Mathew
te: remote: ! Push failed Normally I'd solve this by installing libpoppler-cpp-dev with apt. But on heroku, I don't have root access to do that. Is there a solution for this? Sincerely yours, Joel G Mathew -- You received this message because you are subscribed to the Google Grou

Re: Time tracker sytem

2019-02-03 Thread Joel Mathew
Go through the django tutorials, and kindly start a thread when you have a problem. On Sun, 3 Feb, 2019, 7:56 PM Rupam Hazra I want to create a time tracker system to track the employee work time and > data save to mysql database.please tell me how to start. > > -- > You received this message bec

Re: Where is the data set of the Django documents demo models

2019-02-03 Thread Joel Mathew
Yes, it is not supposed to be a copy paste demo. You're supposed to work along the tutorial, use the shell, and not throw in a bunch of files and opening the browser to see if it works On Sun, 3 Feb, 2019, 7:20 PM Jason I feel I have to disagree, and the reason is the point of the tutorial is > t

Re: Webinterface for python script

2019-02-05 Thread Joel Mathew
Exactly. I to use file upload and rendering in a medical report. @OP Did your research and post your code. Can help with any errors you're getting. Research about request.POST, request.FILES. Read this. https://docs.djangoproject.com/en/2.1/topics/files/ On Tue, 5 Feb, 2019, 1:25 PM Scot Hacker

Re: Installing pdftotext library on heroku

2019-03-05 Thread Joel Mathew
This was solved after a user helped me out on StackOverflow. The solution is to use build packs. https://help.heroku.com/IYRYW6VB/how-do-i-install-additional-software-packages-that-my-application-requires Sincerely yours, Joel G Mathew On Tue, 5 Mar 2019 at 21:02, joelryan2k wrote: >

Re: How does WSGI work?

2019-03-07 Thread Joel Mathew
There's a mod_wsgi_express thread that Graham monitors, so he's sure to get feedback from there Understanding this better could help me solve static file blues. Most of the time I don't understand why my static files fine aren't served when I move to production. On Fri, 8 Mar, 2019, 5:29 AM Mike

Re: Font Awesome does not work locally

2019-03-11 Thread Joel Mathew
It's related to your static address. You're probably not setting the correct relative path. Check the tutorials on how the settings for STATIC files work Sincerely yours, Joel G Mathew On Mon, 11 Mar 2019 at 20:42, Mujab Nasraldeen wrote: > font awesome does not work local

Re: Is there any inline editing the data and delete data in table in Django?

2019-03-22 Thread Joel Mathew
This is simple to achieve with django formset plus jquery. You just need to have a little imagination On Fri, 22 Mar, 2019, 12:15 PM VeeraNagaRaja Sankar, wrote: > hi Derek, > > Thank you but I saw this one not working for my methodology. > > Best Regards, > Inti VeeraNagaRaja Sankar,M.Tech(IT)

Re: how can i get current username in model field ??

2019-04-01 Thread Joel Mathew
This does not make sense to me. A model is not a dynamic entity. It is something that's created beforehand. Getting the current username into model should be done in your logic (views), or the template Sincerely yours, Joel G Mathew On Mon, 1 Apr 2019 at 19:01, omar ahmed wrote: > i

Re: I need help please

2019-04-01 Thread Joel Mathew
It's supposed to be an example. Sincerely yours, Joel G Mathew On Mon, 1 Apr 2019 at 19:12, dvij parekh wrote: > link is not working > > > On Mon, Apr 1, 2019 at 6:32 PM Nanjuki Saidat > wrote: > >> Hi all, >> I am Saidat a new django developer,

Re: Hosting recommendations please

2019-04-02 Thread Joel Mathew
I'm running mine off a Digitalocean 1GB droplet, and one hobby site off Heroku. Heroku has some latency noticeable occasionally, but the digitalocean droplet is perfect. I will scale to better specs once I go into active production. It's working fine for upto 10 users now. Sincerely you

Re: Django module view has no attribute?

2019-04-02 Thread Joel Mathew
Is there a function named posts in views.py? On Tue, 2 Apr, 2019, 7:29 AM drone4four, wrote: > I’m taking a Udemy course by Nick Walter and rather than copying line by > line, I’m trying to branch out and experiment on my own. > > The purpose of the website I am creating is for a small blog, wit

Re: I need help on adding a search button to an input field

2019-04-10 Thread Joel Mathew
Use bootstrap's input-group-append Sincerely yours, Joel G Mathew On Wed, 10 Apr 2019 at 23:14, Nanjuki Saidat wrote: > Please any one to help me out.thanks > > On Wed, 10 Apr 2019 at 20:40, Nanjuki Saidat > wrote: > >> this one still did the same thing which

Re: Need assistance! I want to create a list box that displays records that can be selected (single or multiple) from a PGSQL table.

2019-04-17 Thread Joel Mathew
Great to know -- 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@google

Advanced permissions and role creation

2019-04-20 Thread Joel Mathew
ution to use? Is there a middleware which works well. I don't want to roll my own if I will be reinventing the wheel. Currently my application has no use permissions. But access to specific hospitals is being restricted by a model whoch stores hospital name, and user name. Sincerely yours

Re: Advanced permissions and role creation

2019-04-21 Thread Joel Mathew
building anything complex and pretty > much everything you need is already built-in in Django. > > > > On Sun, Apr 21, 2019 at 5:12 AM Joel Mathew wrote: > >> I have an application for a hospital. There, I should be able to assign >> different roles like Doctor, Nurse,

Re: Storing HTML in DB using DJANGO

2019-04-21 Thread Joel Mathew
I fail to see the purpose of that. Serialisation is sufficient. Big projects like wordpress store even big blog posts, which is html like this. Sincerely yours, Joel G Mathew On Sun, 21 Apr 2019 at 20:20, Brian M wrote: > What if you convert the html to an array of bytes before stor

Re: Integrating Google calendar API in TODO list

2019-04-24 Thread Joel Mathew
Just do it. The API has python sample code. Sincerely yours, Joel G Mathew On Tue, 23 Apr 2019 at 09:58, Sipum wrote: > Hello friends. > > I am going to integrate google calendar API in to my TODO List. > can anyone suggest how to integrate so that when I will add any event

Re: Integrating Google calendar API in TODO list

2019-04-24 Thread Joel Mathew
m. On Wed, 24 Apr, 2019, 10:59 PM Sipum Mishra, wrote: > Joel, i know there is python code for yhat API but how to integrate it.. I > want to know that.. I tried to do but failed. > > On Wed, 24 Apr, 2019, 6:55 PM Joel Mathew, wrote: > >> Just do it. The API has python

Re: Like button for user pictures.

2019-04-25 Thread Joel Mathew
I tried and could not is not a valid developer question. We're left imagining how you tried, and how it failed. Post code with any question and explain in words. Sincerely yours, Joel G Mathew On Fri, 26 Apr 2019 at 00:13, Nitesh Saini wrote: > Hello, > I'm working on a pr

Re: Unable to create the django_migrations table (ORA-00907: missing right parenthesis)

2019-04-27 Thread Joel Mathew
What's the error? Sincerely yours, Joel G Mathew On Sun, 28 Apr 2019 at 01:26, tossouwisdom wrote: > Django 2.2.2 > Cx_oracle 7.2 > base Oracle 11g > > When I run the django migrate commande, i have error > django.db.migrations.exceptions.MigrationSchemaMissin

Simplifying code with multiple loops and logic, into queryset aggregates

2019-04-30 Thread Joel Mathew
lowing, and avoid the loop in the view, and the zip. So that the template code becomes: {% for cust in customers %} {{ cust.name }} {{ cust.status }} {% endfor %} I am not sure whether I am making complete sense, and can explain further. Sincerely yours, Joel G Mathew -- You received this messa

Re: Button Event

2019-04-30 Thread Joel Mathew
Templates expand into html. So you just write javascript like you normally do. You call javascript from within your templates by using something like: Here, I am using {% load static %} Sincerely yours, Joel G Mathew On Tue, 30 Apr 2019 at 12:05, Mayur Bagul wrote: > Thanks Ah

Re: More controls on createsuperuser

2019-04-30 Thread Joel Mathew
It's not the command that you should be worried about, but shell access to your system. If your database server is secure, shell access is restricted, and the server is also hardened reasonably, you should be relatively safe. Sincerely yours, Joel G Mathew On Tue, 30 Apr 2019 at 21:07,

Re: Simplifying code with multiple loops and logic, into queryset aggregates

2019-04-30 Thread Joel Mathew
vise to help budding enthusiasts! Sincerely yours, Joel G Mathew On Tue, 30 Apr 2019 at 20:33, Matthew Pava wrote: > It was a little difficult to follow your message because the formatting is > non-standard, but I think this might be what you’re looking for. > > Also, you should

Re: WYSIWYG/Rich Text Editor recommendations

2019-04-30 Thread Joel Mathew
Currently I'm using quill. It's easy to implement, and has all basic features. Sincerely yours, Joel G Mathew On Wed, 1 May 2019 at 05:47, Tim Johnson wrote: > Using python 3.7.2 and django 2.1.5 > > Production is in Ubuntu 16.04 and prospective deployment is likely >

Re: Anyone kind enough to help me understand these few concepts

2019-05-16 Thread Joel Mathew
m views to templates which display the data. Sincerely yours, Joel G Mathew On Thu, 16 May 2019 at 22:02, DumbaClassics wrote: > I am still new on Django Web Framework and I want to understand the MVC > concept based on this Project structure. Say I am trying to come up with an > Onlin

Re: mod_wsgi problem

2019-06-06 Thread Joel Mathew
Always read installation README and github README before installing anything. It seems you dont even have a basic compiler installed. For Debian based systems, install: `sudo apt install build-essential` Sincerely yours, Joel G Mathew On Thu, 6 Jun 2019 at 17:09, Davin Pore wrote: >

Re: How to create Different Graphs and PDF Reports

2019-06-24 Thread Joel Mathew
You can use reportlab for pdf generation On Mon, 24 Jun, 2019, 9:18 PM Balaji Shetty, wrote: > HI > can anyone suggest How to create Different Graphs and PDF Reports in > Django Admin Panel itself which work on Models with relation. > It there any library. > > > > -- > > > *Mr. Shetty Balaji S.A

New project Django.....any one willing to assist in doing a project...

2019-07-10 Thread Joel Rotich
Share your emailNeed someone really quickI have some basics but I need to work with an expert to speed up. I will pay for Hrs used. -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails

Who can help setup Bazzite scripts for Knowldge base

2019-07-10 Thread Joel Rotich
https://github.com/bazzite/scritsplease assist -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this gro

Transferring away from website host/designer - Retain Django

2017-05-16 Thread Joel McLaughlin
Hi, I have a website that is currently hosted on the Django platform using a Wagtail template. I didn't design the website, however; I am trying to transfer because my hosting is like $500 a month and the designers aren't being helpful. I told them I need all the files to transfer the website

Need Help : Custom User Model

2020-07-22 Thread Joel T
I'm a newbie to web development and more so with the use of django. How do I create a custom user model that has additional fields for other users of my web app while keeping the default django user model for myself - mid-project. I appreciate the help. Thanks. -- You received this message bec

Re: Unexpected behavior with icontains in query filter

2018-08-11 Thread Joel Mathew
This is what I got: In [8]: doct = doctor.objects.filter(name__icontains = 'joel') ...: print(doct.query) SELECT `appointments_doctor`.`docid`, `appointments_doctor`.`name`, `appointments_doctor`.`username`, `appointments_doctor`.`regid`, `appointments_doctor`.`photo`, `appointme

Re: Unexpected behavior with icontains in query filter

2018-08-11 Thread Joel Mathew
This workaround works. In [10]: from django.db.models.functions import Lower In [11]: from django.db.models import CharField In [12]: CharField.register_lookup(Lower, "lower") Out[12]: django.db.models.functions.base.Lower In [13]: doctor.objects.filter(name__lower__contains=&quo

Re: Convoluted setup information

2018-08-18 Thread Joel Mathew
. Sincerely yours, Dr Joel G Mathew On 18 August 2018 at 23:35, akshay kanade wrote: > Mac OS > > Problems: > So it’s pretty clear to me that one MUST install a virtual env before > trying to run django. > However the setup guide almost makes it sound like it’s optional.

Update data instead of creating a new row entry in django model

2018-08-26 Thread Joel Mathew
I have a page for editing existing data from a model. The model: class billitem(models.Model): code = models.AutoField(primary_key=True, unique=True) name = models.CharField(max_length=35) description = models.CharField(max_length=60, null=True) price = models.

Deploying with apache2 and modwsgi

2018-08-29 Thread Joel Mathew
After working with the development server for a month, I'm ready to deploy to a VPS. I've installed a debian9 environment and installed apache2 and modwsgi. I'm having trouble editing the httpd.conf and apache wont start with the added lines. My project is at /home/joel/myappoi

Re: new to django

2018-08-29 Thread Joel Mathew
There are two steps: Install pip, Use pip to install django Follow the tutorial: https://docs.djangoproject.com/en/2.1/intro/install/ On Wed, 29 Aug 2018 at 16:46, sankar ardhas wrote: > > Hi all, > I am a web developer in laravel and codeigniter php web frameworks. > I want to learn h

Re: Deploying with apache2 and modwsgi

2018-08-29 Thread Joel Mathew
I get this: Aug 29 12:24:52 localhost systemd[1]: Starting The Apache HTTP Server... Aug 29 12:24:52 localhost apachectl[12718]: AH00526: Syntax error on line 31 of /etc/apache2/sites-enabled/000-default.conf: Aug 29 12:24:52 localhost apachectl[12718]: WSGIPythonHome cannot occur within section

Re: Deploying with apache2 and modwsgi

2018-08-29 Thread Joel Mathew
ost section. > > On Wednesday, August 29, 2018 at 9:36:20 AM UTC-4, Joel wrote: >> >> I get this: >> >> Aug 29 12:24:52 localhost systemd[1]: Starting The Apache HTTP Server... >> Aug 29 12:24:52 localhost apachectl[12718]: AH00526: Syntax error on >> line 31

Re: Deploying with apache2 and modwsgi

2018-08-30 Thread Joel Mathew
I finally got it working with mod_wsgi-express. I was able to get my django project running on port 80. However I have a new problem. The page starts loading, but takes a very long time to load static files. If I hit refresh in the browser, it gives a 503 error. There's nothing in apache logs. The

Cannot find static files when using mod_wsgi and apache

2018-08-31 Thread Joel Mathew
I'm having trouble getting serving static files. My project is at /home/joel/myappointments The app is at /home/joel/myappointments/appointments An example template contains: myappointments/myappointments/settings.py contains: # Static files (CSS, JavaScript, Images) #

Error with file paths using mod_wsgi-express

2018-09-01 Thread Joel Mathew
If I run mod_wsgi-express from within the directory /home/joel/myappointments, with the command: mod_wsgi-express start-server --document-root ./htdocs wsgi.py --user www-data --group www-data --port 80 --host myopip.com It works fine. Everything loads. static files load correctly. But of course

mod_wsgi-express and letsencrypt

2018-09-05 Thread Joel Mathew
did not return a certificate -- No CAs known to server for verification? Joel G Mathew -- 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-user

How do I make a field optional to enter, in a django ModelForm?

2018-09-12 Thread Joel Mathew
exclude = [ 'gender', 'maritalstatus', 'occupation', 'bloodgroup' ] views.py: def checkin_patient(request): results = '' if request.method == 'POST'

How can I display an AutoField in a ModelForm?

2018-09-12 Thread Joel Mathew
Mobile mobile Alternate Address address

Recreate all tables in mysql after dropping the database

2018-09-16 Thread Joel Mathew
I tried to fix mysql problems in my database by dropping tables. When that didnt work, I dropped the database. I then recreated the database, and tried to run makemigrations. But I am getting errors about missing tables: joel@hp:~/myappointments$ python3 manage.py makemigrations Traceback (most

Creating urls

2018-09-17 Thread Joel Mathew
urls')), path('clinic/', include('clinic.urls')), path('', include('appointments.urls')), path('newclinic', clinic.views.newclinic, name="newclinic"), path('/', clinic.views.clinic_home, name="clinic_home"),

How to get the name and url of an uploaded file when using models.FileField

2018-09-18 Thread Joel Mathew
{% if uploaded_file_url %} File uploaded at: {{ uploaded_file_url }} {% endif %} Return to home {% endblock %} However in the rendered html, the urls are blank: Select a file: max. 42 megabytes

Re: How to add form field dynamically?

2018-09-26 Thread Joel Mathew
ion please let HELP ME?? I know that it will done by > Jquery but how? I dont Know > > > > On Wednesday, September 26, 2018 at 6:14:07 PM UTC+5:30, Joel wrote: >> >> I don't think django alone can help you here. You need to do that with >> JavaScript. >&g

Re: hi friends i want admin page like this. it is a application form in university

2018-09-27 Thread Joel Mathew
This is a standard django admin page. You can just enable admin and add the relevant models. I suggest you follow the django standard tutorials. On Thu, 27 Sep 2018 at 16:42, Sudha Mohan wrote: > > -- > You received this message because you are subscribed to the Google Groups > "Django users"

Re: django/mysite/polls tutorial error

2018-10-02 Thread Joel Mathew
Well, what does /home/gino/djangoDEV/mysite/polls/urls.py contain? On Tue, 2 Oct 2018 at 18:55, 'ginost7' via Django users < django-users@googlegroups.com> wrote: > Hello > > I am trying the django/mysite/polls tutorial. > > After typing, actually copying and pasting this: > > from django.cont

Re: How to migrate old database into new database using python script

2018-10-11 Thread Joel Mathew
Just import the old ones from sql and then modify the tables. Sincerely yours, Dr Joel G Mathew On Thu, 11 Oct 2018 at 22:12, Mohammad Aqib wrote: > I know CLI commands to backup db and restore into another but in this case > CLI would not work because previous db tables is differen

Re: How to save multiple model form in one template?

2018-10-13 Thread Joel Mathew
Could you kindly stop spamming your course details over over this discussion group. It's not useful to the majority of us English speaking people. On Sat, 13 Oct 2018 at 20:41, Daniel Bojorge (Foros) wrote: > Take a look to my course (in spanish) and go to the last CRUD, there I do > a Master

Re: Django tables with check box and delete button

2018-10-16 Thread Joel Mathew
There's not much difference in doing this than what is standard practise. You just create the regular fields, loop over the ones creating multiple rows, assign unique name fields to each of them (you can use {{for.counter}} for this). You then capture the request with request.POST.getlist. On T

django username and password error

2018-10-17 Thread Joel Mathew
account and tried to login. I am unable to login to django admin site and to the custom login which used to work until yesterday night. I'm at a loss to think of what next to check. Any ideas? Joel G Mathew -- You received this message because you are subscribed to the Google Groups "Dj

<    1   2   3   4   >