I know this is an old thread. However, I found it when searching
online when I had the same problem. I did quite a bit of other
searching before I finally realized what was happening.
Yes, I see the same behavior where the 'submit.x' and 'submit.y'
values were in the request.POST dictionary, but
bug (i.e., foreign key lookups do not work).Any help you can give would be great. Then I would know that I need to go read something to learn from a mistake, or I need to break this down into a test case for a bug reproduction.I've tested this against the latest trunk with the same result
rence, but
when trying to use the variables alpha=2, and beta=63, this lookup
fails.
I'm beating my head up against the wall with this. Could anyone send
me some guidance?
Thank you in advance,
Warmest Regards,
Glen Jarvis
--
415-680-3964
g...@glenjarvis.com
http://www.glenjarvis
so
before). But, I wasn't certain that, if I did so, it wouldn't be
"overkill" for this project. But, now I know there is no variable
lookup at all, I can work on creating my template tags.
Thanks again for the help, I couldn't find an answer doing any KB or
google
t; or "denial"
from HIPAA's point of view? I can find no specific links to Django
from hippa.org. Which governmental agency site should I be searching
for with regard to Open Source and security?
Thanks in advance for any direction you can lead me in (where to go or
who to t
ce is something we're going to have to live with in this
design.
When I start getting into this kind of place, I think it's time for me
to stop, put the keyboard down, and think... This is a very common
design pattern: what do most people do?
Thanks for listening and any fresh p
/en/1.0/ref/forms/api/#django.forms.Form.prefix
>
> sdc
That is exactly what I needed. I knew this was common enough there had
to be something!
Thanks,
Glen
--
"You must be the change you wish to see in the world." -M. Gandhi
--~--~-~--~~~---~--
to see if I
could do this project).
Thanks in advance for collaborating/sharing
Cheers,
Glen
--
g...@glenjarvis.com
"You must be the change you wish to see in the world." -M. Gandhi
--~--~-~--~~~---~--~~
You received this message because
I have to agree that debugging javascript does stink. However, the
javascript frameworks (Node, Angular, etc) differ in that the execution is
done client side whereas for Django, any PHP framework and Microsoft
ASP/C#, the execution is backend on the web server. Depending on the
circumstance, the
I have this exact same problem. I'be checked both settings.py and urls.py
and done a syncdb and still get nothing but the welcome page. Any other
ideas on what to check?
On Thursday, June 6, 2013 5:53:12 PM UTC-4, Rebecca wrote:
>
> I'm on part 2 of the django book tutorial (
> https://docs.dj
displays is the welcome site indicating that Django is working. Like the
other person posting, I am simply following along (or trying) with the
Django tutorial. What else can I look at to get to the bottom of this?
Any help would be much appreciated!
Glen
--
You received this message because
I did
spot in the database that I wasn't sure of is in my django_site table it
has example.com. Not sure why it is there as I never did that.
On Tuesday, June 10, 2014 10:10:47 PM UTC-4, Glen J wrote:
>
> I read another post on here about how their Django site admin site would
> not
e page.
On Wednesday, June 11, 2014 7:27:12 AM UTC-4, Sanjay Bhangar wrote:
>
> hey Glen,
>
> Sorry if this is a silly question - but are you sure you are visiting
> /admin on your site?
> If you are and still getting this error, can you please paste the
> contents of your u
'ENGINE': 'django.db.backends.postgresql_psycopg2', # Add
'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAME': 'mysite', # Or path to database file
if using sqlite3.
# Th
Running on linux mint. I'll keep plugging away and see what I can find.
On Thursday, June 12, 2014 3:56:08 AM UTC-4, Sanjay Bhangar wrote:
>
> Hey Glen,
>
> Hm, whatever it is, is not apparent to me, sorry :/. The only thing I
> can think of is possibly inconsistent indent
You should definitely be able to accomplish what you are needing with a
stored function in PostgreSQL. By sending only a single request and
letting the database server do the processing for you, you'll minimize how
much work the web server has to do. That said, writing a stored
function/procedure
It will be different depending on the database (assuming you are asking
about the query only). You will need to do an order by on either your auto
incremented field or dat field plus something like a limit 2 (Postgres and
I believe MySQL) or top 2 for something like SQL Server.
On Jun 18, 2014 8:1
Erik is certainly right on this. All queries are point in time and in
databases with large numbers of inserts per second, getting the true last
two inserts will be relative to when the query starts.
On Jun 18, 2014 9:33 AM, "Erik Cederstrand"
wrote:
> Den 18/06/2014 kl. 14.31 skrev
When I am finally able to get django to work, I plan on doing this. I
think the client side processing of Angular will be a nice complement to
Django on the back end.
On Jun 22, 2014 5:12 AM, "zweb" wrote:
>
> I was looking at Angular and looks like it does many of the thing Django
> Templates d
Hi,
I have two different django projects which each project having different
model
Lets say projects to be p1 and p2
Now i have to populate the data from p1 model to a model in p2 ( note p1
and p2 models are different, i just have to use some data from p1 model to
move to p2)
Now in order to
I think there is a ' , ' missing after 'DIRS' in Templates settings
On Saturday, 30 June 2018, Umar Kambala wrote:
>
> this are my codes...
>
> # SECURITY WARNING: don't run with debug turned on in production!
> DEBUG = True
>
> ALLOWED_HOSTS = ['127.0.0.1', '.pythonanywhere.com']
> ALLOWED_HOST
I would suggest you to try this code
sav_list = List(id=4, item_name ='name1', item_desc='desc1',
location='location', reason='rfp', pid=Order.objects.get(poid = 3))
Instead of passing integer 3 to pid, try to the pass the order Object
which has the poid = 3
On 17 July 2018 at 17:33, Sainath B
have you tried
form.save(commit = True) ?
On 18 July 2018 at 01:27, wrote:
> Is there a paid support option to get help? I've been trying to ask for
> help on IRC for a while but all I've gotten is insults.
>
> On Monday, July 16, 2018 at 6:06:00 PM UTC-4, cbpa...@gmail.com wrote:
>>
>> I'm u
1.open your django project
2.open the terminal in pycharm, it is located at bottom left corner
3. in the terminal change the directory to the location where manage.py is
located
4. type the following python3.7 manage.py shell
On Thu, 16 Aug 2018 at 10:20, Vikrant Gupta
wrote:
> I did according
url(r'^$', 'blog.views.home', name='home')
You are passing a string as view by quoting blog.views.home
remove the quotes and try, i.e url(r'^$', blog.views.home, name='home')
On Fri, 24 Aug 2018 at 03:17, herve kabore wrote:
> this is the urls.py
>
>
> from django.conf.urls import url
> fro
Hi,
I am working on a project where i am using a single django app which is
backed by different databases.
Let me explain the use case clearly,
I have a app say app1, and app1 data is located in two different databases
say db1 and db2
data present in the db1 and db2 are different, lets say db1 h
Hi,
Try after name-spacing url patterns i.e
app_name = 'blog'
urlpatterns = [
path('', PostListView.as_view(), name='blog-home'),
path('user//', UserProfileListView.as_view(), name=
'user-profile' ),
path('user//posts/', UserPostListView.as_view(), name=
'user-posts'),
path('user
try renaming path('post//comment/', views.add_comment, name=
'add-comment'),
to path('post//comment/', views.add_comment, name='add-comment'),
On Fri, 12 Oct 2018 at 12:36, Robert CR wrote:
> i fixed the error, thanks. But there is already a new one when i try to
> add a comment. D:
>
> [image:
*def add_comment(request, slug):*
*post = get_object_or_404(Post, slug=slug)*
*if request.method == 'POST':*
*form = CommentForm(request.POST)*
*if form.is_valid():*
*comment = form.save(commit=False)*
*comment.post = post*
*comment.save()
Hi,
If the Data Base is already present then Django provides an handy command
which will translate your Database schemas into Django models
You have to run python manage.py inspectdb
It will auto generate the models based on the Schema.
Best way to access the data present in the db in the Djang
In the First Screenshot the code is
def __str__(self):
return "Customer" + "self.id"
Remove the quotes from "self.id"
def __str__(self):
return "Customer" + self.id
On Wed, 12 Dec 2018 at 10:47, wrote:
>
> TY madjardi for all your input! I continued to search and found what I
> wanted. But
if you check the error message
DETAIL: Failing row contains (3, 1, Consultation OPD, 135, 135, null, 1).
There are total of 7 values
Check your model
class CGHSRates(models.Model):
rid = models.AutoField(primary_key=True)
serial = models.IntegerField(default=0)
name = models.CharField(max_lengt
32 matches
Mail list logo