Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8567127
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:48:42+00:00 2026-06-11T17:48:42+00:00

it is simple. here is my Profile Model : class Profile(models.Model): owner = models.OneToOneField(User)

  • 0

it is simple.

here is my Profile Model :

class Profile(models.Model):
      owner = models.OneToOneField(User)
      slogan = models.TextField(null=True)
      twitter = models.CharField(max_length = 100,null=True)
      web_site = models.CharField(max_length=100,null=True)
      email = models.CharField(max_length = 100,null=True)

      def create_user(sender,instance,created,**kwargs):
          if created:
              Profile.objects.create(owner=instance)

          post_save.connect(create_user, sender=User)

      def __unicode__(self):
          return self.email

and ModelForm:

class profile_form(ModelForm):
      slogan   = forms.CharField(required=False,max_length=100,widget=forms.Textarea(attrs={'placeholder':'Site Sloganı','rows':'4',}))
      #title    = forms.CharField(required=False,max_length=20,widget=forms.TextInput(attrs={'placeholder': 'Site Başlığı',}))
      email    = forms.CharField(required=False,widget=forms.TextInput(attrs={'placeholder':'E-Mail Adresi',}))
      twitter  = forms.CharField(required=False,widget=forms.TextInput(attrs={'placeholder':'Twitter Adresi',}))
      web_site = forms.CharField(required=False,widget=forms.TextInput(attrs={'placeholder':'Web Siteniz',})

      class Meta:
          model = Profile

when i try to import blog.forms it throws invalid syntax error in line 50 which includes ‘class Meta’.

there were nothing like that. it has just shown.

thank you;

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:48:44+00:00Added an answer on June 11, 2026 at 5:48 pm

    In the line

    web_site = forms.CharField(required=False,widget=forms.TextInput(attrs={'placeholder':'Web Siteniz',})
    

    it is missing a closing paranthesis

    add a ) at the end.

    So it would change to

    web_site = forms.CharField(required=False,widget=forms.TextInput(attrs={'placeholder':'Web Siteniz',}))
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Here are my models: class BillingProfile < ActiveRecord::Base belongs_to :student attr_accessible :cost end class
I think i must be missing something simple here but I can't figure out
I truly hope I've missed something simple here, but I'm running into a strange
Please excuse me if I'm simple here, I want to create a simple widget
I have to be missing something simple here but it escapes me. After the
I think I'm just missing something simple here but here is what I am
I am fully prepared to admit that I am missing something simple here. I
I hope I am not missing something very simple here. I have done a
simple logic here, I don't know how I can separate the value from a
Simple question here: I like to know if a constraint in a oracle database

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.